Exemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="BudgetDetailResponseData" /> class.
        /// </summary>
        /// <param name="budget">budget (required).</param>
        /// <param name="serverKnowledge">The knowledge of the server (required).</param>
        public BudgetDetailResponseData(BudgetDetail budget = default(BudgetDetail), long serverKnowledge = default(long))
        {
            // to ensure "budget" is required (not null)
            if (budget == null)
            {
                throw new InvalidDataException("budget is a required property for BudgetDetailResponseData and cannot be null");
            }
            else
            {
                this.Budget = budget;
            }

            // to ensure "serverKnowledge" is required (not null)
            if (serverKnowledge == null)
            {
                throw new InvalidDataException("serverKnowledge is a required property for BudgetDetailResponseData and cannot be null");
            }
            else
            {
                this.ServerKnowledge = serverKnowledge;
            }
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BudgetDetailResponseData" /> class.
 /// </summary>
 /// <param name="budget">budget (required).</param>
 /// <param name="serverKnowledge">The knowledge of the server (required).</param>
 public BudgetDetailResponseData(BudgetDetail budget = default(BudgetDetail), long serverKnowledge = default(long))
 {
     // to ensure "budget" is required (not null)
     this.Budget          = budget ?? throw new ArgumentNullException("budget is a required property for BudgetDetailResponseData and cannot be null");
     this.ServerKnowledge = serverKnowledge;
 }