public UserService(DatabaseContext context, IVisitedSightsService visitedSightsService, IStatsService statsService, IGameStatsService gameStats) { _context = context; _visitedSightsService = visitedSightsService; _statsService = statsService; _gameStatsService = gameStats; }
public GameController(IGameAppService gameAppService, IGameStatsService gameStatsService, IRedisProvider redisProvider) { this.gameAppService = gameAppService ?? throw new ArgumentNullException(nameof(gameAppService)); this.gameStatsService = gameStatsService ?? throw new ArgumentNullException(nameof(gameStatsService)); this.redisProvider = redisProvider ?? throw new ArgumentNullException(nameof(redisProvider)); }
private static void DownloadedEvent(IGameStatsService statsService) { var response = statsService.DownloadedEvent(new DownloadedRequest { ProjectId = 4, Meta = "First ran at " + DateTime.UtcNow.ToString(), Platform = "Android", PlayerId = string.Empty }); Console.WriteLine(string.Format("Downloaded Event: {0}", response.Message)); Console.WriteLine("**********************************************************"); }
private static void CaptureEvent(IGameStatsService statsService) { var response = statsService.CaptureEvent(new CaptureRequest { ProjectId = 1, PlayerId = string.Empty, IsPublic = true, Data = Convert.ToBase64String(File.ReadAllBytes(@"C:\Users\Felipe\Desktop\2fc15b0.jpg")) }); Console.WriteLine(string.Format("Capture Event: {0}", response.Message)); Console.WriteLine(string.Format("Capture Event Meta: {0}", response.Meta)); Console.WriteLine("**********************************************************"); }
private static void AreaEventBasicAuth(IGameStatsService statsService) { var response = statsService.AreaEventBasicAuth(new AreaEventRequest { ProjectId = 1, Area = "SDK Tester", ClientIP = string.Empty, Difficulty = "Normal", Meta = Guid.NewGuid().ToString(), PerctCompleted = 0, Platform = "Desktop", PlayerId = string.Empty }); Console.WriteLine(string.Format("Area Event Basic Auth: {0}", response.Message)); Console.WriteLine("**********************************************************"); }
public UsersController( IUserService userService, IVisitedSightsService visitedSightsService, IStatsService statsService, IGameStatsService gameStatsService, IMapper mapper, IOptions <AppSettings> appSettings, DatabaseContext context) { _userService = userService; _mapper = mapper; _appSettings = appSettings.Value; _context = context; _visitedSightsService = visitedSightsService; _statsService = statsService; _gameStatsService = gameStatsService; }
private static void GeneralEvent(IGameStatsService statsService) { var response = statsService.GeneralEvent(new GeneralRequest { ProjectId = 4, ClientIP = string.Empty, Difficulty = "Normal", Meta = Guid.NewGuid().ToString(), PerctCompleted = 0, Platform = "Desktop", PlayerId = string.Empty, AreaName = "SDK Test General", TotalHours = 12 }); Console.WriteLine(string.Format("General Event: {0}", response.Message)); Console.WriteLine("**********************************************************"); }