Small UI changes (#3787)
This commit is contained in:
parent
50a052e412
commit
5b8a643d82
203 changed files with 369 additions and 446 deletions
|
|
@ -4,11 +4,13 @@ using System.Xml.Serialization;
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
// TODO: OPDS Dtos are internal state, shouldn't be in DTO directory
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[XmlRoot("feed", Namespace = "http://www.w3.org/2005/Atom")]
|
||||
public class Feed
|
||||
public sealed record Feed
|
||||
{
|
||||
[XmlElement("updated")]
|
||||
public string Updated { get; init; } = DateTime.UtcNow.ToString("s");
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
public class FeedAuthor
|
||||
public sealed record FeedAuthor
|
||||
{
|
||||
[XmlElement("name")]
|
||||
public string Name { get; set; }
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
public class FeedCategory
|
||||
public sealed record FeedCategory
|
||||
{
|
||||
[XmlAttribute("scheme")]
|
||||
public string Scheme { get; } = "http://www.bisg.org/standards/bisac_subject/index.html";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ using System.Xml.Serialization;
|
|||
namespace API.DTOs.OPDS;
|
||||
#nullable enable
|
||||
|
||||
public class FeedEntry
|
||||
public sealed record FeedEntry
|
||||
{
|
||||
[XmlElement("updated")]
|
||||
public string Updated { get; init; } = DateTime.UtcNow.ToString("s");
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
public class FeedEntryContent
|
||||
public sealed record FeedEntryContent
|
||||
{
|
||||
[XmlAttribute("type")]
|
||||
public string Type = "text";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ using System.Xml.Serialization;
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
public class FeedLink
|
||||
public sealed record FeedLink
|
||||
{
|
||||
[XmlIgnore]
|
||||
public bool IsPageStream { get; set; }
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
namespace API.DTOs.OPDS;
|
||||
|
||||
[XmlRoot("OpenSearchDescription", Namespace = "http://a9.com/-/spec/opensearch/1.1/")]
|
||||
public class OpenSearchDescription
|
||||
public sealed record OpenSearchDescription
|
||||
{
|
||||
/// <summary>
|
||||
/// Contains a brief human-readable title that identifies this search engine.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
namespace API.DTOs.OPDS;
|
||||
|
||||
public class SearchLink
|
||||
public sealed record SearchLink
|
||||
{
|
||||
[XmlAttribute("type")]
|
||||
public string Type { get; set; } = default!;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue