Iceshrimp.NET/Iceshrimp.Shared/Schemas/Web/UserProfileResponse.cs
2024-07-04 17:53:11 +02:00

33 lines
No EOL
954 B
C#

namespace Iceshrimp.Shared.Schemas.Web;
public class UserProfileResponse
{
public required string Id { get; set; }
public required string? Birthday { get; set; }
public required string? Location { get; set; }
public required List<UserProfileField>? Fields { get; set; }
public required string? Bio { get; set; }
public required int? Followers { get; set; }
public required int? Following { get; set; }
public required Relations Relations { get; set; }
}
[Flags]
public enum Relations
{
None = 0,
Self = 1,
Following = 2,
FollowedBy = 4,
Requested = 8,
RequestedBy = 16,
Blocking = 32,
Muting = 64
}
public class UserProfileField
{
public required string Name { get; set; }
public required string Value { get; set; }
public bool? Verified { get; set; }
}