Пример #1
0
        public GameServiceRepository(IXHRServiceRepository serviceRepository) : base("/api/v1")
        {
            createGameEndpoint      = BaseApiEndpoint.AsUrlCombineWith(createGameEndpoint);
            deleteGameEndPoint      = BaseApiEndpoint.AsUrlCombineWith(deleteGameEndPoint);
            getGamesEndPoint        = BaseApiEndpoint.AsUrlCombineWith(getGamesEndPoint);
            getMyGamesEndPoint      = BaseApiEndpoint.AsUrlCombineWith(getMyGamesEndPoint);
            getGameMapEndPoint      = BaseApiEndpoint.AsUrlCombineWith(getGameMapEndPoint);
            saveGameMapEndPoint     = BaseApiEndpoint.AsUrlCombineWith(saveGameMapEndPoint);
            updateGameEndPoint      = BaseApiEndpoint.AsUrlCombineWith(updateGameEndPoint);
            readGameEndpoint        = BaseApiEndpoint.AsUrlCombineWith(readGameEndpoint);
            getPublishGamesEndpoint = BaseApiEndpoint.AsUrlCombineWith(getPublishGamesEndpoint);

            getGamePlaysEndpoint     = BaseApiEndpoint.AsUrlCombineWith(getGamePlaysEndpoint);
            getGamePlaysCodeEndpoint = BaseApiEndpoint.AsUrlCombineWith(getGamePlaysCodeEndpoint);
            createGamePlaysEndpoint  = BaseApiEndpoint.AsUrlCombineWith(createGamePlaysEndpoint);
            gameSolutionEndpoint     = BaseApiEndpoint.AsUrlCombineWith(gameSolutionEndpoint);

            getMarksEndpoint = BaseApiEndpoint.AsUrlCombineWith(getMarksEndpoint);

            _serviceRepository = serviceRepository;
        }
Пример #2
0
 public IdentityServiceRepository(IXHRServiceRepository serviceRepository) : base("/api/v1")
 {
     loginEndpoint      = BaseApiEndpoint.AsUrlCombineWith(loginEndpoint);
     registerEndPoint   = BaseApiEndpoint.AsUrlCombineWith(registerEndPoint);
     _serviceRepository = serviceRepository;
 }