Build / Build (push) Successful in 36s
Every answer of the Mastodon API and the client API now has its JSON shape generated when the server is built, instead of worked out by reflection while it runs; the bytes sent are unchanged. The small answers that were anonymous objects (the instance documents, notification policies, reports, lists, tags, trends, errors and the empty answers) are named types. A type without generated metadata fails at once in development and on the pasture, and in production is logged and still answered. Three lists that were sent as lazy sequences (moderation reports, the published domain blocks and the languages) are now built first. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
27 lines
887 B
C#
27 lines
887 B
C#
|
|
namespace PrivaPub.ClientModels.User.Avatar
|
|
{
|
|
public class ViewAvatar
|
|
{
|
|
public string Id { get; set; }
|
|
public string Handle { get; set; }
|
|
public string Url { get; set; }//url
|
|
public string Name { get; set; }//name
|
|
public string UserName { get; set; }//preferredUsername
|
|
public string Biography { get; set; }//summary
|
|
public Dictionary<string, string> Fields { get; set; } = new();
|
|
|
|
public string PictureURL { get; set; }//icon
|
|
public string ThumbnailURL { get; set; }//image
|
|
public Dictionary<string, string> SharedPersonalContacts { get; set; } = new();
|
|
|
|
public ViewAvatarState AccountState { get; set; } = ViewAvatarState.Normal;
|
|
public ViewAvatarServer ServerType { get; set; } = ViewAvatarServer.Unknown;
|
|
|
|
public ViewAvatarSettings Settings { get; set; } = new();
|
|
|
|
public DateTime UpdatedAt { get; set; }
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|
|
}
|