using System.Xml.Serialization;
namespace API.DTOs.OPDS;
[XmlRoot("OpenSearchDescription", Namespace = "http://a9.com/-/spec/opensearch/1.1/")]
public class OpenSearchDescription
{
    /// 
    /// Contains a brief human-readable title that identifies this search engine.
    /// 
    public string ShortName { get; set; } = default!;
    /// 
    /// Contains an extended human-readable title that identifies this search engine.
    /// 
    public string LongName { get; set; } = default!;
    /// 
    /// Contains a human-readable text description of the search engine.
    /// 
    public string Description { get; set; } = default!;
    /// 
    /// https://github.com/dewitt/opensearch/blob/master/opensearch-1-1-draft-6.md#the-url-element
    /// 
    public SearchLink Url { get; set; } = default!;
    /// 
    /// Contains a set of words that are used as keywords to identify and categorize this search content.
    /// Tags must be a single word and are delimited by the space character (' ').
    /// 
    public string Tags { get; set; } = string.Empty;
    /// 
    /// Contains a URL that identifies the location of an image that can be used in association with this search content.
    /// http://example.com/websearch.png
    /// 
    public string Image { get; set; } = default!;
    public string InputEncoding { get; set; } = "UTF-8";
    public string OutputEncoding { get; set; } = "UTF-8";
    /// 
    /// Contains the human-readable name or identifier of the creator or maintainer of the description document.
    /// 
    public string Developer { get; set; } = "kavitareader.com";
}