public static string DisplayLolTFTBoostJobDescription(SpartanBoosting.Models.Pricing.PurchaseForm purchaseForm) { switch (purchaseForm.PurchaseType) { case Utils.PurchaseTypeEnum.PurchaseType.SoloBoosting: return($"{purchaseForm.BoostingModel.YourCurrentLeague} {purchaseForm.BoostingModel.CurrentDivision} {purchaseForm.BoostingModel.CurrentLP} to {purchaseForm.BoostingModel.DesiredCurrentLeague} {purchaseForm.BoostingModel.DesiredCurrentDivision}"); case Utils.PurchaseTypeEnum.PurchaseType.DuoBoosting: return($"{purchaseForm.BoostingModel.YourCurrentLeague} {purchaseForm.BoostingModel.CurrentDivision} {purchaseForm.BoostingModel.CurrentLP} to {purchaseForm.BoostingModel.DesiredCurrentLeague} {purchaseForm.BoostingModel.DesiredCurrentDivision}"); case Utils.PurchaseTypeEnum.PurchaseType.WinBoosting: return($"{purchaseForm.WinBoostModel.YourCurrentLeague} {purchaseForm.WinBoostModel.CurrentDivision} With {purchaseForm.WinBoostModel.NumOfGames} Games"); case Utils.PurchaseTypeEnum.PurchaseType.PlacementMatches: return($"{purchaseForm.PlacementMatchesModel.LastSeasonStanding} With {purchaseForm.PlacementMatchesModel.NumOfGames} Games"); case Utils.PurchaseTypeEnum.PurchaseType.TFTPlacement: return($"{purchaseForm.TFTPlacementModel.LastSeasonStanding} With {purchaseForm.TFTPlacementModel.NumberOfGames} Games"); case Utils.PurchaseTypeEnum.PurchaseType.TFTBoosting: return($"{purchaseForm.TFTBoostingModel.YourCurrentLeague} {purchaseForm.TFTBoostingModel.CurrentDivision} {purchaseForm.TFTBoostingModel.CurrentLP} to {purchaseForm.TFTBoostingModel.DesiredCurrentLeague} {purchaseForm.TFTBoostingModel.DesiredCurrentDivision}"); case Utils.PurchaseTypeEnum.PurchaseType.Coaching: break; default: break; } return(""); }
public static LolActivityViewModel DisplayLolActivityViewModel(SpartanBoosting.Models.Pricing.PurchaseForm purchaseForm) { LolActivityViewModel LolActivityViewModel = new LolActivityViewModel(); LolActivityViewModel.OrderNumber = $"#LOL-{purchaseForm.Id}"; LolActivityViewModel.DaysAgo = (int)Math.Abs(Math.Round((DateTime.Now - purchaseForm.CreatedDate).TotalDays)); switch (purchaseForm.PurchaseType) { case Utils.PurchaseTypeEnum.PurchaseType.SoloBoosting: LolActivityViewModel.RankUrl = $"solo"; LolActivityViewModel.OrderTitle = "New Division Solo!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.BoostingModel.YourCurrentLeague} {purchaseForm.BoostingModel.CurrentDivision} {purchaseForm.BoostingModel.CurrentLP} to {purchaseForm.BoostingModel.DesiredCurrentLeague} {purchaseForm.BoostingModel.DesiredCurrentDivision}"; break; case Utils.PurchaseTypeEnum.PurchaseType.DuoBoosting: LolActivityViewModel.RankUrl = $"duo"; LolActivityViewModel.OrderTitle = "New Division Duo!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.BoostingModel.YourCurrentLeague} {purchaseForm.BoostingModel.CurrentDivision} {purchaseForm.BoostingModel.CurrentLP} to {purchaseForm.BoostingModel.DesiredCurrentLeague} {purchaseForm.BoostingModel.DesiredCurrentDivision}"; break; case Utils.PurchaseTypeEnum.PurchaseType.WinBoosting: LolActivityViewModel.RankUrl = $"win"; LolActivityViewModel.OrderTitle = $"New Win Boost {purchaseForm.WinBoostModel.TypeOfService}!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.WinBoostModel.YourCurrentLeague} {purchaseForm.WinBoostModel.CurrentDivision} With {purchaseForm.WinBoostModel.NumOfGames} Games"; break; case Utils.PurchaseTypeEnum.PurchaseType.PlacementMatches: LolActivityViewModel.RankUrl = $"placement"; LolActivityViewModel.OrderTitle = $"New Placement {purchaseForm.PlacementMatchesModel.TypeOfService}!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.PlacementMatchesModel.LastSeasonStanding} With {purchaseForm.PlacementMatchesModel.NumOfGames} Games"; break; case Utils.PurchaseTypeEnum.PurchaseType.TFTPlacement: LolActivityViewModel.RankUrl = $"placement"; LolActivityViewModel.OrderTitle = $"New Placement {purchaseForm.PlacementMatchesModel.TypeOfService}!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.TFTPlacementModel.LastSeasonStanding} With {purchaseForm.TFTPlacementModel.NumberOfGames} Games"; break; case Utils.PurchaseTypeEnum.PurchaseType.TFTBoosting: LolActivityViewModel.RankUrl = $"solo"; LolActivityViewModel.OrderTitle = $"New TFT Boost Solo!"; LolActivityViewModel.OrderInformation = $"{purchaseForm.TFTBoostingModel.YourCurrentLeague} {purchaseForm.TFTBoostingModel.CurrentDivision} {purchaseForm.TFTBoostingModel.CurrentLP} to {purchaseForm.TFTBoostingModel.DesiredCurrentLeague} {purchaseForm.TFTBoostingModel.DesiredCurrentDivision}"; break; case Utils.PurchaseTypeEnum.PurchaseType.Coaching: break; default: break; } return(LolActivityViewModel); }