Files
decePubClient/Models/Mastodon/InstanceV2.cs
T

23 lines
754 B
C#
Raw Normal View History

namespace decePubClient.Models.Mastodon;
/// <summary>/api/v2/instance, the part the client reads: what an upload may be.</summary>
public class InstanceV2
{
public InstanceConfiguration Configuration { get; set; } = new();
}
public class InstanceConfiguration
{
public MediaConfiguration MediaAttachments { get; set; } = new();
}
/// <summary>The types an upload may have and how big it may be, as the server enforces them.</summary>
public class MediaConfiguration
{
public List<string> SupportedMimeTypes { get; set; } = [];
public long ImageSizeLimit { get; set; }
public long VideoSizeLimit { get; set; }
public long ImageMatrixLimit { get; set; }
public long VideoMatrixLimit { get; set; }
public int VideoFrameRateLimit { get; set; }
}