/// <summary> /// Initializes a new instance of the <see cref="BudgetSummary" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="name">name (required).</param> /// <param name="lastModifiedOn">The last time any changes were made to the budget from either a web or mobile client.</param> /// <param name="firstMonth">The earliest budget month.</param> /// <param name="lastMonth">The latest budget month.</param> /// <param name="dateFormat">dateFormat.</param> /// <param name="currencyFormat">currencyFormat.</param> public BudgetSummary(Guid id = default(Guid), string name = default(string), DateTime lastModifiedOn = default(DateTime), DateTime firstMonth = default(DateTime), DateTime lastMonth = default(DateTime), DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for BudgetSummary and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for BudgetSummary and cannot be null"); } else { this.Name = name; } this.LastModifiedOn = lastModifiedOn; this.FirstMonth = firstMonth; this.LastMonth = lastMonth; this.DateFormat = dateFormat; this.CurrencyFormat = currencyFormat; }
/// <summary> /// Initializes a new instance of the <see cref="BudgetDetail" /> class. /// </summary> /// <param name="id">id (required).</param> /// <param name="name">name (required).</param> /// <param name="lastModifiedOn">The last time any changes were made to the budget from either a web or mobile client.</param> /// <param name="firstMonth">The earliest budget month.</param> /// <param name="lastMonth">The latest budget month.</param> /// <param name="dateFormat">dateFormat.</param> /// <param name="currencyFormat">currencyFormat.</param> /// <param name="accounts">accounts.</param> /// <param name="payees">payees.</param> /// <param name="payeeLocations">payeeLocations.</param> /// <param name="categoryGroups">categoryGroups.</param> /// <param name="categories">categories.</param> /// <param name="months">months.</param> /// <param name="transactions">transactions.</param> /// <param name="subtransactions">subtransactions.</param> /// <param name="scheduledTransactions">scheduledTransactions.</param> /// <param name="scheduledSubtransactions">scheduledSubtransactions.</param> public BudgetDetail(Guid id = default(Guid), string name = default(string), DateTime lastModifiedOn = default(DateTime), DateTime firstMonth = default(DateTime), DateTime lastMonth = default(DateTime), DateFormat dateFormat = default(DateFormat), CurrencyFormat currencyFormat = default(CurrencyFormat), List <Account> accounts = default(List <Account>), List <Payee> payees = default(List <Payee>), List <PayeeLocation> payeeLocations = default(List <PayeeLocation>), List <CategoryGroup> categoryGroups = default(List <CategoryGroup>), List <Category> categories = default(List <Category>), List <MonthDetail> months = default(List <MonthDetail>), List <TransactionSummary> transactions = default(List <TransactionSummary>), List <SubTransaction> subtransactions = default(List <SubTransaction>), List <ScheduledTransactionSummary> scheduledTransactions = default(List <ScheduledTransactionSummary>), List <ScheduledSubTransaction> scheduledSubtransactions = default(List <ScheduledSubTransaction>)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for BudgetDetail and cannot be null"); } else { this.Id = id; } // to ensure "name" is required (not null) if (name == null) { throw new InvalidDataException("name is a required property for BudgetDetail and cannot be null"); } else { this.Name = name; } this.LastModifiedOn = lastModifiedOn; this.FirstMonth = firstMonth; this.LastMonth = lastMonth; this.DateFormat = dateFormat; this.CurrencyFormat = currencyFormat; this.Accounts = accounts; this.Payees = payees; this.PayeeLocations = payeeLocations; this.CategoryGroups = categoryGroups; this.Categories = categories; this.Months = months; this.Transactions = transactions; this.Subtransactions = subtransactions; this.ScheduledTransactions = scheduledTransactions; this.ScheduledSubtransactions = scheduledSubtransactions; }