Ejemplo n.º 1
0
 public void SetGameDataContract(GameDataContract gameData)
 {
     this.Created         = gameData.Created;
     this.Generation      = gameData.Generation;
     this.Id              = gameData.Id;
     this.Modified        = gameData.Modified;
     this.Name            = gameData.Name;
     this.ReleaseYear     = gameData.ReleaseYear;
     this.GameResourceUri = this.GameResourceUri;
 }
Ejemplo n.º 2
0
        public GameDataContract httpGetGame()
        {
            GameDataContract game    = new GameDataContract();
            string           jsonStr = base.HttpGet(GameResourceUri);

            game = JsonConvert.DeserializeObject <GameDataContract>(jsonStr);

            Debug.WriteLine("Game Id: " + game.Id + ", Game Name: " + game.Name);

            return(game);
        }