jellyfin-plugin-opds/Jellyfin.Plugin.Opds/Models/PublisherDto.cs
Cody Robibero 6d5f361cab fix build
2021-12-18 09:21:23 -07:00

50 lines
1.2 KiB
C#

using System.Xml.Serialization;
namespace Jellyfin.Plugin.Opds.Models;
/// <summary>
/// Publisher dto.
/// </summary>
[XmlRoot(ElementName = "publisher")]
public class PublisherDto
{
/// <summary>
/// Initializes a new instance of the <see cref="PublisherDto"/> class.
/// </summary>
public PublisherDto()
{
}
/// <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;
}
/// <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;
}
/// <summary>
/// Gets or sets the name.
/// </summary>
[XmlElement(ElementName = "name")]
public string? Name { get; set; }
/// <summary>
/// Gets or sets the uri.
/// </summary>
[XmlElement(ElementName = "uri")]
public string? Uri { get; set; }
}