﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace Semantria.Com.Mapping.Output
{
    [DataContract(Name = "category")]
    [XmlRootAttribute("category", Namespace = "")]
    public class DocCategory
    {
        [DataMember(Name = "title")]
        [XmlElementAttribute("title")]
        public string Title { get; set; }

        [DataMember(Name = "type")]
        [XmlElementAttribute("type")]
        public string Type { get; set; }

        [DataMember(Name = "strength_score")]
        [XmlElementAttribute("strength_score")]
        public float StrengthScore { get; set; }

        [DataMember(Name = "categories")]
        [XmlArrayAttribute("categories")]
        [XmlArrayItemAttribute("category", typeof(DocCategory))]
        public List<DocCategory> Categories { get; set; }
    }
}

