Пример #1
0
 public RequirementViewModel(RoleRequirementViewModel role, CooldownRequirementViewModel cooldown = null, CurrencyRequirementViewModel currency = null,
                             CurrencyRequirementViewModel rank = null, ThresholdRequirementViewModel threshold = null)
 {
     this.Role      = role;
     this.Cooldown  = (cooldown != null) ? cooldown : new CooldownRequirementViewModel();
     this.Currency  = currency;
     this.Rank      = rank;
     this.Threshold = (threshold != null) ? threshold : new ThresholdRequirementViewModel();
 }
Пример #2
0
 public RequirementViewModel()
 {
     this.Role      = new RoleRequirementViewModel();
     this.Cooldown  = new CooldownRequirementViewModel();
     this.Threshold = new ThresholdRequirementViewModel();
 }