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(); }
public RequirementViewModel() { this.Role = new RoleRequirementViewModel(); this.Cooldown = new CooldownRequirementViewModel(); this.Threshold = new ThresholdRequirementViewModel(); }