You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
636 B
24 lines
636 B
1 year ago
|
using System.Text.Json.Serialization;
|
||
|
|
||
|
namespace StabilityMatrix.Core.Models.Api.CivitTRPC;
|
||
|
|
||
|
public record CivitUserAccountResponse(int Id, int Balance, int LifetimeBalance);
|
||
|
|
||
|
public record CivitTrpcResponse<T>
|
||
|
{
|
||
|
[JsonPropertyName("result")]
|
||
|
public required CivitTrpcResponseData<T> Result { get; set; }
|
||
|
|
||
|
public record CivitTrpcResponseData<TData>
|
||
|
{
|
||
|
[JsonPropertyName("data")]
|
||
|
public required CivitTrpcResponseDataJson<TData> Data { get; set; }
|
||
|
}
|
||
|
|
||
|
public record CivitTrpcResponseDataJson<TJson>
|
||
|
{
|
||
|
[JsonPropertyName("Json")]
|
||
|
public required TJson Json { get; set; }
|
||
|
}
|
||
|
}
|