/// <summary> /// Initializes a new instance of the UnitGroupModel class. /// </summary> /// <param name="code">The code for the unit group that can be shown in /// reports and table views</param> /// <param name="description">The description for the unit /// group</param> /// <param name="id">The unit group id</param> /// <param name="maxPersons">Maximum number of persons for the unit /// group</param> /// <param name="memberCount">Number of units in this group</param> /// <param name="name">The name for the unit group</param> /// <param name="property">The property to which the unit group belongs /// to</param> /// <param name="rank">The unit group rank</param> public UnitGroupModel(string code, IDictionary <string, string> description, string id, int maxPersons, int memberCount, IDictionary <string, string> name, EmbeddedPropertyModel property, int?rank = default(int?)) { Code = code; Description = description; Id = id; MaxPersons = maxPersons; MemberCount = memberCount; Name = name; Property = property; Rank = rank; CustomInit(); }
/// <summary> /// Initializes a new instance of the UnitModel class. /// </summary> /// <param name="created">Date of creation<br />Specify a date /// and time (without fractional second part) in UTC or with UTC offset /// as defined in <a /// href="https://en.wikipedia.org/wiki/ISO_8601">ISO8601:2004</a></param> /// <param name="description">The description for the unit</param> /// <param name="id">The unit id</param> /// <param name="maxPersons">Maximum number of persons for the /// unit</param> /// <param name="name">The name for the unit</param> /// <param name="property">The property to which the unit belongs /// to</param> /// <param name="status">The current status of the unit</param> /// <param name="unitGroup">The unit group</param> public UnitModel(System.DateTime created, IDictionary <string, string> description, string id, int maxPersons, string name, EmbeddedPropertyModel property, UnitStatusModel status, EmbeddedUnitGroupModel unitGroup = default(EmbeddedUnitGroupModel)) { Created = created; Description = description; Id = id; MaxPersons = maxPersons; Name = name; Property = property; Status = status; UnitGroup = unitGroup; CustomInit(); }