/// <summary> /// Initializes a new instance of the <see cref="TimeRecord" /> class. /// </summary> /// <param name="Id">A system-generated unique identifier for a TimeRecord (required).</param> /// <param name="RentalAgreement">A foreign key reference to the system-generated unique identifier for a Rental Agreement (required).</param> /// <param name="WorkedDate">The date of the time record entry - the day of the entry if it is a daily entry, or a date in the week in which the work occurred if tracked weekly. (required).</param> /// <param name="Hours">The number of hours worked by the equipment. (required).</param> /// <param name="RentalAgreementRate">The Rental Agreement Rate component to which this Rental Agreement applies. If null, this time applies to the equipment itself..</param> /// <param name="EnteredDate">The date-time the time record information was entered..</param> /// <param name="TimePeriod">The time period of the entry - either day or week. HETS Clerk have the option of entering time records on a day-by-day or week-by-week basis..</param> public TimeRecord(int Id, RentalAgreement RentalAgreement, DateTime WorkedDate, float?Hours, RentalAgreementRate RentalAgreementRate = null, DateTime?EnteredDate = null, string TimePeriod = null) { this.Id = Id; this.RentalAgreement = RentalAgreement; this.WorkedDate = WorkedDate; this.Hours = Hours; this.RentalAgreementRate = RentalAgreementRate; this.EnteredDate = EnteredDate; this.TimePeriod = TimePeriod; }