Exemplo n.º 1
0
        public async Task SetServicesListAsync(string jsonString)
        {
            var parsedJson = JsonConvert.DeserializeObject<X343DataModels.ServicesList>(jsonString);

            ServicesList = new ServicesList
            {
                ServiceList = parsedJson.ServiceList,
                Settings = parsedJson.Settings
            };
        }
Exemplo n.º 2
0
        public async Task GetServicesListAsync()
        {
            var jsonString = await CallX343ApiAsync(ServicesList.ServicesListUrl);
            var parsedJson = JsonConvert.DeserializeObject<X343DataModels.ServicesList>(jsonString);

            ServicesList = new ServicesList
            {
                ServiceList = parsedJson.ServiceList,
                Settings = parsedJson.Settings
            };
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initalize a new Instance of AuntieDot. The most badass, cigar chompiest HaloWaypoint Stat Wrapper there is!
        /// </summary>
        /// <param name="spartanToken">The 343 Spartan Token, this can be obtained in AuntieDot.Authentication</param>
        /// <param name="gamertagFromAuth">The gamertag that was used in the original WLID OAuth process.</param>
        public AuntieDotManager(string spartanToken, string gamertagFromAuth)
        {
            _settings = new Settings
            {
                Language = "en-US",
                Game = "h4",
                SpartanToken = spartanToken,
                GamertagFromAuth = gamertagFromAuth
            };

            ServicesList = new ServicesList();
        }