namespace decePubClient.Models.Mastodon; /// /// A picture, video or audio file. Url and PreviewUrl go through PrivaPub (its own files or its media proxy); /// RemoteUrl is where a remote file came from. /// public class MediaAttachment { public string Id { get; set; } /// image, gifv, video, audio or unknown. public string Type { get; set; } public string Url { get; set; } public string PreviewUrl { get; set; } public string RemoteUrl { get; set; } public MediaMeta Meta { get; set; } public string Description { get; set; } public string Blurhash { get; set; } } public class MediaMeta { public MediaSize Original { get; set; } /// h:mm:ss.ff, for video and audio. public string Length { get; set; } public MediaFocus Focus { get; set; } } public class MediaSize { public int? Width { get; set; } public int? Height { get; set; } public string Size { get; set; } public double? Aspect { get; set; } public double? Duration { get; set; } } public class MediaFocus { public double X { get; set; } public double Y { get; set; } }