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); }
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; }