/// <summary> /// Initializes a new instance of the <see cref="LoginRequest" /> class. /// </summary> /// <param name="Login">Login (required).</param> /// <param name="Password">Your password (required).</param> public LoginRequest(BeezUPCommonEmail Login = default(BeezUPCommonEmail), string Password = default(string)) { // to ensure "Login" is required (not null) if (Login == null) { throw new InvalidDataException("Login is a required property for LoginRequest and cannot be null"); } else { this.Login = Login; } // to ensure "Password" is required (not null) if (Password == null) { throw new InvalidDataException("Password is a required property for LoginRequest and cannot be null"); } else { this.Password = Password; } }
/// <summary> /// Initializes a new instance of the <see cref="AccountInfo" /> class. /// </summary> /// <param name="UserId">UserId (required).</param> /// <param name="Email">Email (required).</param> /// <param name="PersonalInfo">PersonalInfo (required).</param> /// <param name="Status">Status (required).</param> /// <param name="CompanyInfo">CompanyInfo (required).</param> /// <param name="ProfilePictureUrl">ProfilePictureUrl (required).</param> /// <param name="Links">Links (required).</param> /// <param name="Info">Info.</param> public AccountInfo(BeezUPCommonUserId UserId = default(BeezUPCommonUserId), BeezUPCommonEmail Email = default(BeezUPCommonEmail), PersonalInfo PersonalInfo = default(PersonalInfo), AccountStatus Status = default(AccountStatus), CompanyInfo CompanyInfo = default(CompanyInfo), ProfilePictureUrl ProfilePictureUrl = default(ProfilePictureUrl), AccountInfoLinks Links = default(AccountInfoLinks), BeezUPCommonInfoSummaries Info = default(BeezUPCommonInfoSummaries)) { // to ensure "UserId" is required (not null) if (UserId == null) { throw new InvalidDataException("UserId is a required property for AccountInfo and cannot be null"); } else { this.UserId = UserId; } // to ensure "Email" is required (not null) if (Email == null) { throw new InvalidDataException("Email is a required property for AccountInfo and cannot be null"); } else { this.Email = Email; } // to ensure "PersonalInfo" is required (not null) if (PersonalInfo == null) { throw new InvalidDataException("PersonalInfo is a required property for AccountInfo and cannot be null"); } else { this.PersonalInfo = PersonalInfo; } // to ensure "Status" is required (not null) if (Status == null) { throw new InvalidDataException("Status is a required property for AccountInfo and cannot be null"); } else { this.Status = Status; } // to ensure "CompanyInfo" is required (not null) if (CompanyInfo == null) { throw new InvalidDataException("CompanyInfo is a required property for AccountInfo and cannot be null"); } else { this.CompanyInfo = CompanyInfo; } // to ensure "ProfilePictureUrl" is required (not null) if (ProfilePictureUrl == null) { throw new InvalidDataException("ProfilePictureUrl is a required property for AccountInfo and cannot be null"); } else { this.ProfilePictureUrl = ProfilePictureUrl; } // to ensure "Links" is required (not null) if (Links == null) { throw new InvalidDataException("Links is a required property for AccountInfo and cannot be null"); } else { this.Links = Links; } this.Info = Info; }