<commit_before>﻿using System;
using System.Xml.Serialization;
using eZet.EveLib.Modules.Util;

namespace eZet.EveLib.Modules.Models.Account {
    [Serializable]
    [XmlRoot("result", IsNullable = false)]
    public class ApiKeyInfo {
        [XmlElement("key")]
        public ApiKeyData Key { get; set; }

        public class ApiKeyData {
            [XmlElement("rowset")]
            public EveOnlineRowCollection<CharacterInfo> Characters { get; set; }

            [XmlAttribute("accessMask")]
            public int AccessMask { get; set; }

            [XmlAttribute("type")]
            public string Type { get; set; }

            [XmlIgnore]
            public DateTime ExpireDate { get; private set; }

            [XmlAttribute("expires")]
            public string ExpireDateAsString {
                get { return ExpireDate.ToString(XmlHelper.DateFormat); }
                set {
                    ExpireDate = value == "" ? DateTime.MinValue : DateTime.ParseExact(value, XmlHelper.DateFormat, null);
                }
            }
        }

        [Serializable]
        [XmlRoot("row", IsNullable = false)]
        public class CharacterInfo {
            [XmlAttribute("characterName")]
            public string CharacterName { get; set; }

            [XmlAttribute("characterID")]
            public long CharacterId { get; set; }

            [XmlAttribute("corporationName")]
            public string CorporationName { get; set; }

            [XmlAttribute("corporationID")]
            public long CorporationId { get; set; }<commit_msg>Added Faction and Alliance data.<commit_after>﻿using System;
using System.Xml.Serialization;
using eZet.EveLib.Modules.Util;

namespace eZet.EveLib.Modules.Models.Account {
    [Serializable]
    [XmlRoot("result", IsNullable = false)]
    public class ApiKeyInfo {
        [XmlElement("key")]
        public ApiKeyData Key { get; set; }

        public class ApiKeyData {
            [XmlElement("rowset")]
            public EveOnlineRowCollection<CharacterInfo> Characters { get; set; }

            [XmlAttribute("accessMask")]
            public int AccessMask { get; set; }

            [XmlAttribute("type")]
            public string Type { get; set; }

            [XmlIgnore]
            public DateTime ExpireDate { get; private set; }

            [XmlAttribute("expires")]
            public string ExpireDateAsString {
                get { return ExpireDate.ToString(XmlHelper.DateFormat); }
                set {
                    ExpireDate = value == "" ? DateTime.MinValue : DateTime.ParseExact(value, XmlHelper.DateFormat, null);
                }
            }
        }

        [Serializable]
        [XmlRoot("row", IsNullable = false)]
        public class CharacterInfo {

            [XmlAttribute("characterID")]
            public long CharacterId { get; set; }

            [XmlAttribute("characterName")]
            public string CharacterName { get; set; }

            [XmlAttribute("corporationID")]
            public long CorporationId { get; set; }

            [XmlAttribute("corporationName")]
            public string CorporationName { get; set; }

            [XmlAttribute("allianceID")]
            public long AllianceId { get; set; }

            [XmlAttribute("allianceName")]
            public string AllianceName { get; set; }

            [XmlAttribute("factionID")]
            public long FactionId { get; set; }

            [XmlAttribute("factionName")]
            public string FactionName { get; set; }
{'fraction_non_alphanumeric': 0.10271646859083192, 'fraction_numerical': 0.0, 'mean_word_length': 2.0136402387041774, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3424546', 'n_tokens_mistral': 911, 'n_tokens_neox': 883, 'n_words': 216}