/// <summary> /// Initializes a new instance of the <see cref="ProfilePictureInfoResponseLinks" /> class. /// </summary> /// <param name="Self">Self (required).</param> /// <param name="Save">Save (required).</param> public ProfilePictureInfoResponseLinks(LinksGetProfilePictureInfoLink Self = default(LinksGetProfilePictureInfoLink), LinksSaveProfilePictureInfoLink Save = default(LinksSaveProfilePictureInfoLink)) { // to ensure "Self" is required (not null) if (Self == null) { throw new InvalidDataException("Self is a required property for ProfilePictureInfoResponseLinks and cannot be null"); } else { this.Self = Self; } // to ensure "Save" is required (not null) if (Save == null) { throw new InvalidDataException("Save is a required property for ProfilePictureInfoResponseLinks and cannot be null"); } else { this.Save = Save; } }
/// <summary> /// Initializes a new instance of the <see cref="AccountInfoLinks" /> class. /// </summary> /// <param name="SavePersonalInfo">SavePersonalInfo (required).</param> /// <param name="ChangePassword">ChangePassword (required).</param> /// <param name="SaveCompanyInfo">SaveCompanyInfo (required).</param> /// <param name="GetProfilePictureInfo">GetProfilePictureInfo (required).</param> /// <param name="SaveProfilePictureInfo">SaveProfilePictureInfo (required).</param> /// <param name="GetCreditCardInfo">GetCreditCardInfo (required).</param> /// <param name="SaveCreditCardInfo">SaveCreditCardInfo (required).</param> public AccountInfoLinks(LinksSavePersonalInfoLink SavePersonalInfo = default(LinksSavePersonalInfoLink), LinksChangePasswordLink ChangePassword = default(LinksChangePasswordLink), LinksSaveCompanyInfoLink SaveCompanyInfo = default(LinksSaveCompanyInfoLink), LinksGetProfilePictureInfoLink GetProfilePictureInfo = default(LinksGetProfilePictureInfoLink), LinksSaveProfilePictureInfoLink SaveProfilePictureInfo = default(LinksSaveProfilePictureInfoLink), LinksGetCreditCardInfoLink GetCreditCardInfo = default(LinksGetCreditCardInfoLink), LinksSaveCreditCardInfoLink SaveCreditCardInfo = default(LinksSaveCreditCardInfoLink)) { // to ensure "SavePersonalInfo" is required (not null) if (SavePersonalInfo == null) { throw new InvalidDataException("SavePersonalInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.SavePersonalInfo = SavePersonalInfo; } // to ensure "ChangePassword" is required (not null) if (ChangePassword == null) { throw new InvalidDataException("ChangePassword is a required property for AccountInfoLinks and cannot be null"); } else { this.ChangePassword = ChangePassword; } // to ensure "SaveCompanyInfo" is required (not null) if (SaveCompanyInfo == null) { throw new InvalidDataException("SaveCompanyInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.SaveCompanyInfo = SaveCompanyInfo; } // to ensure "GetProfilePictureInfo" is required (not null) if (GetProfilePictureInfo == null) { throw new InvalidDataException("GetProfilePictureInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.GetProfilePictureInfo = GetProfilePictureInfo; } // to ensure "SaveProfilePictureInfo" is required (not null) if (SaveProfilePictureInfo == null) { throw new InvalidDataException("SaveProfilePictureInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.SaveProfilePictureInfo = SaveProfilePictureInfo; } // to ensure "GetCreditCardInfo" is required (not null) if (GetCreditCardInfo == null) { throw new InvalidDataException("GetCreditCardInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.GetCreditCardInfo = GetCreditCardInfo; } // to ensure "SaveCreditCardInfo" is required (not null) if (SaveCreditCardInfo == null) { throw new InvalidDataException("SaveCreditCardInfo is a required property for AccountInfoLinks and cannot be null"); } else { this.SaveCreditCardInfo = SaveCreditCardInfo; } }