public MasterGameRequest ToDomain(FantasyCriticUser user, Instant requestTimestamp) { int?steamID = null; var steamGameIDString = SubstringSearching.GetBetween(SteamLink, "/app/", "/"); if (steamGameIDString.IsSuccess) { bool parseResult = int.TryParse(steamGameIDString.Value, out int steamIDResult); if (parseResult) { steamID = steamIDResult; } } int?openCriticID = URLParsingExtensions.GetOpenCriticIDFromURL(OpenCriticLink); return(new MasterGameRequest(Guid.NewGuid(), user, requestTimestamp, RequestNote, GameName, steamID, openCriticID, ReleaseDate, EstimatedReleaseDate, false, null, null, Maybe <Lib.Domain.MasterGame> .None, false)); }
public MasterGameRequest ToDomain(FantasyCriticUser user, Instant requestTimestamp, EligibilityLevel eligibilityLevel) { int?steamID = null; var steamGameIDString = SubstringSearching.GetBetween(SteamLink, "/app/", "/"); if (steamGameIDString.IsSuccess) { bool parseResult = int.TryParse(steamGameIDString.Value, out int steamIDResult); if (parseResult) { steamID = steamIDResult; } } int?openCriticID = URLParsingExtensions.GetOpenCriticIDFromURL(OpenCriticLink); return(new MasterGameRequest(Guid.NewGuid(), user, requestTimestamp, RequestNote, GameName, steamID, openCriticID, ReleaseDate, EstimatedReleaseDate, eligibilityLevel, YearlyInstallment, EarlyAccess, FreeToPlay, ReleasedInternationally, ExpansionPack, UnannouncedGame, false, null, null, Maybe <Lib.Domain.MasterGame> .None, false)); }
public MasterGameChangeRequest ToDomain(FantasyCriticUser user, Instant requestTimestamp, Lib.Domain.MasterGame masterGame) { int?openCriticID = URLParsingExtensions.GetOpenCriticIDFromURL(OpenCriticLink); return(new MasterGameChangeRequest(Guid.NewGuid(), user, requestTimestamp, RequestNote, masterGame, openCriticID, false, null, null, false)); }