Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 public LeagueTagStatus ToDomain(MasterGameTag tag)
 {
     return(new LeagueTagStatus(tag, TagStatus.FromValue(Status)));
 }
Ejemplo n.º 4
0
 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;
 }
Ejemplo n.º 6
0
 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
     }));
 }
Ejemplo n.º 7
0
 public LeagueTagStatus(MasterGameTag tag, TagStatus status)
 {
     Tag    = tag;
     Status = status;
 }