Iceshrimp.NET/Iceshrimp.Shared/Schemas/UserProfileResponse.cs

21 lines
No EOL
922 B
C#

using J = System.Text.Json.Serialization.JsonPropertyNameAttribute;
namespace Iceshrimp.Shared.Schemas;
public class UserProfileResponse
{
[J("id")] public required string Id { get; set; }
[J("birthday")] public required string? Birthday { get; set; }
[J("location")] public required string? Location { get; set; }
[J("fields")] public required List<UserProfileField>? Fields { get; set; }
[J("bio")] public required string? Bio { get; set; }
[J("followers")] public required int? Followers { get; set; }
[J("following")] public required int? Following { get; set; }
}
public class UserProfileField
{
[J("name")] public required string Name { get; set; }
[J("value")] public required string Value { get; set; }
[J("verified")] public bool? IsVerified { get; set; }
}