Iceshrimp.NET/Iceshrimp.Shared/Schemas/Web/UserResponse.cs
2024-09-27 20:21:37 +02:00

18 lines
No EOL
712 B
C#

using static System.Text.Json.Serialization.JsonIgnoreCondition;
using JI = System.Text.Json.Serialization.JsonIgnoreAttribute;
namespace Iceshrimp.Shared.Schemas.Web;
public class UserResponse
{
public required string Id { get; set; }
public required string Username { get; set; }
public required string? Host { get; set; }
public required string? DisplayName { get; set; }
public required string? AvatarUrl { get; set; }
public required string? BannerUrl { get; set; }
public required string? InstanceName { get; set; }
public required string? InstanceIconUrl { get; set; }
[JI(Condition = WhenWritingNull)] public string? MovedTo { get; set; }
}