/// <summary> /// Initializes a new instance of the <see cref="CompanyIdcontactsDataRelationshipsContactPeopleData" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="type">Type of the resource.</param> /// <param name="attributes">attributes.</param> public CompanyIdcontactsDataRelationshipsContactPeopleData(string id = default(string), TypeEnum?type = default(TypeEnum?), ContactPersonAttributes attributes = default(ContactPersonAttributes)) { this.Id = id; this.Type = type; this.Attributes = attributes; }
/// <summary> /// Initializes a new instance of the <see cref="ContactPerson" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="type">Type of the resource.</param> /// <param name="attributes">attributes (required).</param> /// <param name="relationships">relationships.</param> public ContactPerson(string id = default(string), TypeEnum?type = default(TypeEnum?), ContactPersonAttributes attributes = default(ContactPersonAttributes), Object relationships = default(Object)) { // to ensure "attributes" is required (not null) if (attributes == null) { throw new InvalidDataException("attributes is a required property for ContactPerson and cannot be null"); } else { this.Attributes = attributes; } this.Id = id; this.Type = type; this.Relationships = relationships; }