103 lines
2.8 KiB
C#
103 lines
2.8 KiB
C#
using Newtonsoft.Json;
|
|
|
|
namespace OF_DL.Entities.Highlights;
|
|
|
|
public class HighlightMedia
|
|
{
|
|
public long id { get; set; }
|
|
public long userId { get; set; }
|
|
public string title { get; set; }
|
|
public long coverStoryId { get; set; }
|
|
public string cover { get; set; }
|
|
public int storiesCount { get; set; }
|
|
public DateTime? createdAt { get; set; }
|
|
public List<Story> stories { get; set; }
|
|
|
|
public class Files
|
|
{
|
|
public Full full { get; set; }
|
|
public Thumb thumb { get; set; }
|
|
public Preview preview { get; set; }
|
|
public SquarePreview squarePreview { get; set; }
|
|
}
|
|
|
|
public class Full
|
|
{
|
|
public string url { get; set; }
|
|
public int width { get; set; }
|
|
public int height { get; set; }
|
|
public long size { get; set; }
|
|
public List<object> sources { get; set; }
|
|
}
|
|
|
|
public class Medium
|
|
{
|
|
public long id { get; set; }
|
|
public string type { get; set; }
|
|
public bool convertedToVideo { get; set; }
|
|
public bool canView { get; set; }
|
|
public bool hasError { get; set; }
|
|
public DateTime? createdAt { get; set; }
|
|
public Files files { get; set; }
|
|
}
|
|
|
|
public class Preview
|
|
{
|
|
public string url { get; set; }
|
|
public int width { get; set; }
|
|
public int height { get; set; }
|
|
public long size { get; set; }
|
|
public Sources sources { get; set; }
|
|
}
|
|
|
|
public class Source
|
|
{
|
|
public string url { get; set; }
|
|
public int width { get; set; }
|
|
public int height { get; set; }
|
|
public int duration { get; set; }
|
|
public long size { get; set; }
|
|
public Sources sources { get; set; }
|
|
}
|
|
|
|
public class Sources
|
|
{
|
|
[JsonProperty("720")] public string _720 { get; set; }
|
|
|
|
[JsonProperty("240")] public string _240 { get; set; }
|
|
|
|
public string w150 { get; set; }
|
|
public string w480 { get; set; }
|
|
}
|
|
|
|
public class SquarePreview
|
|
{
|
|
public string url { get; set; }
|
|
public int width { get; set; }
|
|
public int height { get; set; }
|
|
public long size { get; set; }
|
|
public Sources sources { get; set; }
|
|
}
|
|
|
|
public class Story
|
|
{
|
|
public long id { get; set; }
|
|
public long userId { get; set; }
|
|
public bool isWatched { get; set; }
|
|
public bool isReady { get; set; }
|
|
public List<Medium> media { get; set; }
|
|
public DateTime? createdAt { get; set; }
|
|
public object question { get; set; }
|
|
public bool canLike { get; set; }
|
|
public bool isLiked { get; set; }
|
|
}
|
|
|
|
public class Thumb
|
|
{
|
|
public string url { get; set; }
|
|
public int width { get; set; }
|
|
public int height { get; set; }
|
|
public long size { get; set; }
|
|
}
|
|
}
|