Exemple #1
0
        private void BreedingInfo()
        {
            var eventId = _client.ViewModel.BreedingEventId;
            var url     = string.Format("http://astrum.amebagames.com/_/event/breeding?_id={0}", Uri.EscapeDataString(eventId));
            var result  = _client.GetXHR(url);
            var info    = JsonConvert.DeserializeObject <BreedingEventInfo>(result);

            InfoPrinter.PrintBreedingEventInfo(info, _client.ViewModel);

            _client.ViewModel.EventName             = info.name;
            _client.ViewModel.BreedingPointName     = info.breedingPointName;
            _client.ViewModel.BreedingPoint         = info.breedingPoint;
            _client.ViewModel.BreedingExchangePoint = info.exchangePoint;
            _client.ViewModel.BreedingPartners      = info.partners;

            _client.DelayShort();
        }