public MasterGameTagViewModel(MasterGameTag domain) { Name = domain.Name; ReadableName = domain.ReadableName; ShortName = domain.ShortName; TagType = domain.TagType.Name; Description = domain.Description; Examples = domain.Examples; BadgeColor = domain.BadgeColor; }
public MasterGameTagEntity(MasterGameTag domain) { Name = domain.Name; ReadableName = domain.ReadableName; ShortName = domain.ShortName; TagType = domain.TagType.Name; HasCustomCode = domain.HasCustomCode; SystemTagOnly = domain.SystemTagOnly; Description = domain.Description; Examples = JsonConvert.SerializeObject(domain.Examples); BadgeColor = domain.BadgeColor; }
public LeagueTagStatus ToDomain(MasterGameTag tag) { return(new LeagueTagStatus(tag, TagStatus.FromValue(Status))); }
public MasterGameHasTagEntity(MasterGame masterGame, MasterGameTag tag) { MasterGameID = masterGame.MasterGameID; TagName = tag.Name; }
public SpecialGameSlotEntity(Guid specialSlotID, League league, int year, int specialSlotPosition, MasterGameTag tag) { SpecialSlotID = specialSlotID; LeagueID = league.LeagueID; Year = year; SpecialSlotPosition = specialSlotPosition; Tag = tag.Name; }
private static MasterGame CreateBasicMasterGame(string name, LocalDate releaseDate, MasterGameTag tag) { return(new MasterGame(Guid.NewGuid(), name, releaseDate.ToISOString(), releaseDate, releaseDate, null, null, null, releaseDate, null, null, null, "", null, null, null, false, false, false, false, Instant.MinValue, new List <MasterSubGame>(), new List <MasterGameTag>() { tag })); }
public LeagueTagStatus(MasterGameTag tag, TagStatus status) { Tag = tag; Status = status; }