Ejemplo n.º 1
0
        public UIPlayGame desrz(PlayGame playGame)
        {
            UIPlayGame p = new UIPlayGame();

            p.Gamer1          = playGame.Gamer1;
            p.Gamer2          = playGame.Gamer2;
            p.Queue           = playGame.Queue;
            p.GameId          = playGame.GameId;
            p.WhiteCoordinate = JsonConvert.DeserializeObject <List <Coordinate> >(playGame.WhiteCoordinate);
            p.BlackCoordinate = JsonConvert.DeserializeObject <List <Coordinate> >(playGame.BlackCoordinate);
            p.Move            = JsonConvert.DeserializeObject <Move>(playGame.Move);
            return(p);
        }
Ejemplo n.º 2
0
        public PlayGame srz(UIPlayGame playGame)
        {
            PlayGame p = new PlayGame();

            p.Gamer1          = playGame.Gamer1;
            p.Gamer2          = playGame.Gamer2;
            p.Queue           = playGame.Queue;
            p.GameId          = playGame.GameId;
            p.WhiteCoordinate = JsonConvert.SerializeObject(playGame.WhiteCoordinate);
            p.BlackCoordinate = JsonConvert.SerializeObject(playGame.BlackCoordinate);
            p.Move            = JsonConvert.SerializeObject(playGame.Move);
            return(p);
        }