41 lines
1.1 KiB
C#
41 lines
1.1 KiB
C#
namespace decePubClient.Models.Mastodon;
|
|||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// 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.
|
||
|
|
/// </summary>
|
||
|
|
public class MediaAttachment
|
||
|
|
{
|
||
|
|
public string Id { get; set; }
|
||
|
|
/// <summary>image, gifv, video, audio or unknown.</summary>
|
||
|
|
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; }
|
||
|
|
/// <summary>h:mm:ss.ff, for video and audio.</summary>
|
||
|
|
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; }
|
||
|
|
}
|