mirror of
https://github.com/ckaczor/ChrisKaczor.FeverClient.git
synced 2026-01-13 17:22:17 -05:00
Initial commit
This commit is contained in:
14
Models/Favicon.cs
Normal file
14
Models/Favicon.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace ChrisKaczor.FeverClient.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class Favicon
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("data")]
|
||||
public required string Data { get; set; }
|
||||
}
|
||||
26
Models/Feed.cs
Normal file
26
Models/Feed.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace ChrisKaczor.FeverClient.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class Feed
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("favicon_id")]
|
||||
public required int FaviconId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public required string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public required string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("site_url")]
|
||||
public required string SiteUrl { get; set; }
|
||||
|
||||
[JsonPropertyName("last_updated_on_time")]
|
||||
public required DateTimeOffset LastUpdatedOnTime { get; set; }
|
||||
}
|
||||
14
Models/FeedGroup.cs
Normal file
14
Models/FeedGroup.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace ChrisKaczor.FeverClient.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class FeedGroup
|
||||
{
|
||||
[JsonPropertyName("group_id")]
|
||||
public required int GroupId { get; set; }
|
||||
|
||||
[JsonPropertyName("feed_ids")]
|
||||
public required IEnumerable<int> FeedIds { get; set; }
|
||||
}
|
||||
35
Models/FeedItem.cs
Normal file
35
Models/FeedItem.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace ChrisKaczor.FeverClient.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class FeedItem
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("feed_id")]
|
||||
public required int FeedId { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public required string Title { get; set; }
|
||||
|
||||
[JsonPropertyName("author")]
|
||||
public required string Author { get; set; }
|
||||
|
||||
[JsonPropertyName("html")]
|
||||
public required string Html { get; set; }
|
||||
|
||||
[JsonPropertyName("url")]
|
||||
public required string Url { get; set; }
|
||||
|
||||
[JsonPropertyName("is_saved")]
|
||||
public required bool IsSaved { get; set; }
|
||||
|
||||
[JsonPropertyName("is_read")]
|
||||
public required bool IsRead { get; set; }
|
||||
|
||||
[JsonPropertyName("created_on_time")]
|
||||
public required DateTimeOffset CreatedOnTime { get; set; }
|
||||
}
|
||||
14
Models/Group.cs
Normal file
14
Models/Group.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using System.Text.Json.Serialization;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace ChrisKaczor.FeverClient.Models;
|
||||
|
||||
[PublicAPI]
|
||||
public class Group
|
||||
{
|
||||
[JsonPropertyName("id")]
|
||||
public required int Id { get; set; }
|
||||
|
||||
[JsonPropertyName("title")]
|
||||
public required string Title { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user