public DropGameRequestViewModel(DropRequest dropRequest, IClock clock)
 {
     DropRequestID = dropRequest.DropRequestID;
     Timestamp     = dropRequest.Timestamp.ToDateTimeUtc();
     Successful    = dropRequest.Successful;
     MasterGame    = new MasterGameViewModel(dropRequest.MasterGame, clock);
 }
        public MasterGameRequestViewModel(MasterGameRequest domain, IClock clock)
        {
            RequestID            = domain.RequestID;
            RequesterDisplayName = domain.User.DisplayName;
            GameName             = domain.GameName;
            ReleaseDate          = domain.ReleaseDate;
            EstimatedReleaseDate = domain.EstimatedReleaseDate;
            SteamID      = domain.SteamID;
            OpenCriticID = domain.OpenCriticID;

            EligibilityLevel        = domain.EligibilityLevel.Level;
            YearlyInstallment       = domain.YearlyInstallment;
            EarlyAccess             = domain.EarlyAccess;
            FreeToPlay              = domain.FreeToPlay;
            ReleasedInternationally = domain.ReleasedInternationally;
            ExpansionPack           = domain.ExpansionPack;
            UnannouncedGame         = domain.UnannouncedGame;

            Answered          = domain.Answered;
            ResponseNote      = domain.ResponseNote;
            ResponseTimestamp = domain.ResponseTimestamp;
            if (domain.MasterGame.HasValue)
            {
                MasterGame = new MasterGameViewModel(domain.MasterGame.Value, clock);
            }
            Hidden      = domain.Hidden;
            RequestNote = domain.RequestNote;
        }
 public PickupBidViewModel(PickupBid pickupBid, IClock clock)
 {
     BidID      = pickupBid.BidID;
     BidAmount  = pickupBid.BidAmount;
     Priority   = pickupBid.Priority;
     Timestamp  = pickupBid.Timestamp.ToDateTimeUtc();
     Successful = pickupBid.Successful;
     MasterGame = new MasterGameViewModel(pickupBid.MasterGame, clock);
 }
Пример #4
0
        public MasterGameChangeRequestViewModel(MasterGameChangeRequest domain, IClock clock)
        {
            RequestID            = domain.RequestID;
            RequesterDisplayName = domain.User.DisplayName;
            MasterGame           = new MasterGameViewModel(domain.MasterGame, clock);

            RequestNote  = domain.RequestNote;
            OpenCriticID = domain.OpenCriticID;

            Answered          = domain.Answered;
            ResponseNote      = domain.ResponseNote;
            ResponseTimestamp = domain.ResponseTimestamp;
            Hidden            = domain.Hidden;
        }
Пример #5
0
        public MasterGameRequestViewModel(MasterGameRequest domain, IClock clock)
        {
            RequestID            = domain.RequestID;
            RequesterDisplayName = domain.User.DisplayName;
            GameName             = domain.GameName;
            ReleaseDate          = domain.ReleaseDate;
            EstimatedReleaseDate = domain.EstimatedReleaseDate;
            SteamID      = domain.SteamID;
            OpenCriticID = domain.OpenCriticID;

            Answered          = domain.Answered;
            ResponseNote      = domain.ResponseNote;
            ResponseTimestamp = domain.ResponseTimestamp;
            if (domain.MasterGame.HasValue)
            {
                MasterGame = new MasterGameViewModel(domain.MasterGame.Value, clock);
            }
            Hidden      = domain.Hidden;
            RequestNote = domain.RequestNote;
        }
 public QueuedGameViewModel(QueuedGame queuedGame, IClock clock)
 {
     MasterGame = new MasterGameViewModel(queuedGame.MasterGame, clock);
     Rank       = queuedGame.Rank;
 }
Пример #7
0
 public EligibilityOverrideViewModel(EligibilityOverride domain, IClock clock)
 {
     MasterGame = new MasterGameViewModel(domain.MasterGame, clock);
     Eligible   = domain.Eligible;
 }