/// <summary> /// Initializes a new instance of the <see cref="CompanyIdcontactsData" /> class. /// </summary> /// <param name="id">id.</param> /// <param name="type">Type of the resource.</param> /// <param name="attributes">attributes.</param> /// <param name="relationships">relationships.</param> public CompanyIdcontactsData(string id = default(string), TypeEnum?type = default(TypeEnum?), ContactAttributes attributes = default(ContactAttributes), CompanyIdcontactsDataRelationships relationships = default(CompanyIdcontactsDataRelationships)) { this.Id = id; this.Type = type; this.Attributes = attributes; this.Relationships = relationships; }
/// <summary> /// Initializes a new instance of the <see cref="Contact" /> 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 Contact(string id = default(string), TypeEnum?type = default(TypeEnum?), ContactAttributes attributes = default(ContactAttributes), ContactRelationships relationships = default(ContactRelationships)) { // to ensure "attributes" is required (not null) if (attributes == null) { throw new InvalidDataException("attributes is a required property for Contact and cannot be null"); } else { this.Attributes = attributes; } this.Id = id; this.Type = type; this.Relationships = relationships; }