Skip to content

Commit

Permalink
Fix objects to work with latest API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
sim0n00ps committed Aug 20, 2024
1 parent 9afac79 commit 5fca265
Show file tree
Hide file tree
Showing 8 changed files with 236 additions and 77 deletions.
28 changes: 28 additions & 0 deletions OF DL/Entities/Archived/Archived.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,38 @@ public class Drm

public class Files
{
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
public Drm drm { get; set; }
}

public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class SquarePreview
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Thumb
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Hls
{
[JsonProperty("CloudFront-Policy")]
Expand Down
17 changes: 13 additions & 4 deletions OF DL/Entities/Highlights/HighlightMedia.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -19,13 +19,22 @@ public class HighlightMedia
public List<Story> stories { get; set; }
public class Files
{
public Source source { get; set; }
public Thumb thumb { get; set; }
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
}

public class Medium
public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class Medium
{
public long id { get; set; }
public string type { get; set; }
Expand Down
41 changes: 35 additions & 6 deletions OF DL/Entities/Messages/Messages.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,41 @@ public class Drm
public Signature signature { get; set; }
}

public class Files
{
public Drm drm { get; set; }
}

public class FromUser
public class Files
{
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
public Drm drm { get; set; }
}

public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class SquarePreview
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Thumb
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class FromUser
{
public int? id { get; set; }
public string _view { get; set; }
Expand Down
28 changes: 28 additions & 0 deletions OF DL/Entities/Post/Post.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,38 @@ public class Drm

public class Files
{
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
public Drm drm { get; set; }
}

public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class SquarePreview
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Thumb
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Hls
{
[JsonProperty("CloudFront-Policy")]
Expand Down
29 changes: 29 additions & 0 deletions OF DL/Entities/Post/SinglePost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static OF_DL.Entities.Post.Post;

namespace OF_DL.Entities.Post
{
Expand Down Expand Up @@ -73,10 +74,38 @@ public class Author

public class Files
{
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
public Drm drm { get; set; }
}

public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class SquarePreview
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Thumb
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Info
{
public Source source { get; set; }
Expand Down
13 changes: 11 additions & 2 deletions OF DL/Entities/Stories/Stories.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Newtonsoft.Json;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
Expand All @@ -20,12 +20,21 @@ public class Stories
public bool isLiked { get; set; }
public class Files
{
public Source source { get; set; }
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 int size { get; set; }
public List<object> sources { get; set; }
}

public class Medium
{
public long id { get; set; }
Expand Down
28 changes: 28 additions & 0 deletions OF DL/Entities/Streams/Streams.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,38 @@ public class Counters

public class Files
{
public Full full { get; set; }
public Thumb thumb { get; set; }
public Preview preview { get; set; }
public SquarePreview squarePreview { get; set; }
public Drm drm { get; set; }
}

public class Full
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
public List<object> sources { get; set; }
}

public class SquarePreview
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Thumb
{
public string url { get; set; }
public int width { get; set; }
public int height { get; set; }
public int size { get; set; }
}

public class Info
{
public Source source { get; set; }
Expand Down
Loading

0 comments on commit 5fca265

Please sign in to comment.