コード例 #1
0
        public SpriteDataContract httpGetSprite()
        {
            SpriteDataContract sprite  = new SpriteDataContract();
            string             jsonStr = base.HttpGet(SpriteResourceUri);

            sprite = JsonConvert.DeserializeObject <SpriteDataContract>(jsonStr);

            Debug.WriteLine("Pokemon Id: " + sprite.Id + ", Pokemon Name: " + sprite.Name);

            return(sprite);
        }
コード例 #2
0
 public void SetSpriteDataContract(SpriteDataContract spriteData)
 {
     this.Created            = spriteData.Created;
     this.Id                 = spriteData.Id;
     this.Image              = spriteData.Image;
     this.Modified           = spriteData.Modified;
     this.Name               = spriteData.Name;
     this.PokemonResourceUri = spriteData.PokemonResourceUri;
     this.Name               = spriteData.Name;
     this.SpriteResourceUri  = spriteData.SpriteResourceUri;
 }