public async Task <LobbyModel> CreateAsync([NotNull] string playerServiceId) { AccountDbDto account = await accountFacadeService.ReadOrCreateAccountAsync(playerServiceId); if (account == null) { throw new NullReferenceException(nameof(account)); } RewardsThatHaveNotBeenShown rewardsThatHaveNotBeenShown = await notShownRewardsReaderService .GetNotShownRewardAndMarkAsRead(playerServiceId); WarshipRatingScaleModel warshipRatingScaleModel = warshipRatingScale.GetWarshipRatingScaleModel(); if (warshipRatingScaleModel == null) { throw new Exception($"{nameof(warshipRatingScaleModel)} was null"); } AccountDto accountDto = accountMapperService.Map(account); LobbyModel lobbyModel = new LobbyModel { AccountDto = accountDto, RewardsThatHaveNotBeenShown = rewardsThatHaveNotBeenShown, WarshipRatingScaleModel = warshipRatingScaleModel }; lobbyModel.BundleVersion = bundleVersionService.GetBundleVersion(); return(lobbyModel); }
public void SetValue(WarshipRatingScaleModel warshipRatingScaleModelArg) { warshipRatingScaleModel = warshipRatingScaleModelArg; }