2026-10-01 11:17:14 +02:00
namespace PrivaPub.Models.Post
2023-02-18 08:52:17 +01:00
{
public class PostMedia
{
2026-10-01 11:17:14 +02:00
public Guid Id { get ; set ; } = Guid . NewGuid ();
2023-02-18 08:52:17 +01:00
public string ContentType { get ; set ; }
2026-10-07 10:48:44 +02:00
public string Kind { get ; set ; } //a local upload's kind ("gifv" for a GIF made an mp4), where the type alone can't tell
2023-02-18 08:52:17 +01:00
public string FileName { get ; set ; }
public string Extension { get ; set ; }
public string Path { get ; set ; }
public string URL { get ; set ; }
2026-10-01 11:17:14 +02:00
public string RemoteURL { get ; set ; }
2026-10-01 12:22:08 +02:00
public string PreviewURL { get ; set ; }
public string AttachmentId { get ; set ; }
2026-10-01 11:17:14 +02:00
public string Description { get ; set ; }
public string Blurhash { get ; set ; }
public int? Width { get ; set ; }
public int? Height { get ; set ; }
2026-11-10 01:24:43 +01:00
[System.Diagnostics.CodeAnalysis.SuppressMessage("HouseRules", "HR0006", Justification = "Null when no focal point was set, and the image is centred.")]
2026-10-01 11:17:14 +02:00
public float [] Focus { get ; set ; }
2026-10-01 17:53:59 +02:00
public string RemotePreviewURL { get ; set ; } //the remote thumbnail (attachment icon), served through the proxy
public double? DurationSeconds { get ; set ; }
public bool? Sensitive { get ; set ; } //Misskey marks each attachment
2023-02-18 08:52:17 +01:00
}
}