50 lines
1.2 KiB
C#
Raw Normal View History

2021-09-17 09:45:24 -06:00
using System.Xml.Serialization;
2021-12-12 08:48:08 -07:00
namespace Jellyfin.Plugin.Opds.Models;
/// <summary>
/// Publisher dto.
/// </summary>
[XmlRoot(ElementName = "publisher")]
public class PublisherDto
2021-09-17 09:45:24 -06:00
{
/// <summary>
2021-12-12 08:48:08 -07:00
/// Initializes a new instance of the <see cref="PublisherDto"/> class.
2021-09-17 09:45:24 -06:00
/// </summary>
2021-12-12 08:48:08 -07:00
public PublisherDto()
2021-09-17 09:45:24 -06:00
{
2021-12-12 08:48:08 -07:00
}
2021-09-17 09:45:24 -06:00
2021-12-12 08:48:08 -07:00
/// <summary>
/// Initializes a new instance of the <see cref="PublisherDto"/> class.
/// </summary>
/// <param name="name">The publisher name.</param>
public PublisherDto(string name)
{
Name = name;
}
2021-09-17 09:45:24 -06:00
2021-12-12 08:48:08 -07:00
/// <summary>
/// Initializes a new instance of the <see cref="PublisherDto"/> class.
/// </summary>
/// <param name="name">The publisher name.</param>
/// <param name="uri">The publisher uri.</param>
public PublisherDto(string name, string uri)
{
Name = name;
Uri = uri;
}
2021-09-17 09:45:24 -06:00
2021-12-12 08:48:08 -07:00
/// <summary>
/// Gets or sets the name.
/// </summary>
[XmlElement(ElementName = "name")]
public string? Name { get; set; }
2021-09-17 09:45:24 -06:00
2021-12-12 08:48:08 -07:00
/// <summary>
/// Gets or sets the uri.
/// </summary>
[XmlElement(ElementName = "uri")]
public string? Uri { get; set; }
2021-12-18 09:21:23 -07:00
}