Exemple #1
0
        static public Grpc.Game ToGrpcModel(this Models.Game game)
        {
            var grpcModel = new Grpc.Game()
            {
                Id         = game.Id,
                GameCode   = game.GameCode,
                Name       = game.Name,
                Platform   = (Grpc.Game.Types.Platform)game.Platform,
                LandingUrl = game.LandingUrl,
                ImageUrl   = game.ImageUrl
            };

            return(grpcModel);
        }
Exemple #2
0
        static public Models.Game ToDomainModel(this Grpc.Game game)
        {
            var domainModel = new Models.Game()
            {
                Id         = game.Id,
                GameCode   = game.GameCode,
                Name       = game.Name,
                Platform   = (Models.Platform)game.Platform,
                LandingUrl = game.LandingUrl,
                ImageUrl   = game.ImageUrl
            };

            return(domainModel);
        }