/// <summary>
 /// Initializes a new instance of the <see cref="ProfilePictureInfoWithDefault" /> class.
 /// </summary>
 /// <param name="ProfilePictureUrl">ProfilePictureUrl.</param>
 /// <param name="ProfilePictureSelected">ProfilePictureSelected (required).</param>
 /// <param name="InitialsProfilePictureUrl">InitialsProfilePictureUrl (required).</param>
 /// <param name="GravatarProfilePictureUrl">GravatarProfilePictureUrl (required).</param>
 public ProfilePictureInfoWithDefault(ProfilePictureUrl ProfilePictureUrl = default(ProfilePictureUrl), ProfilePictureSelected ProfilePictureSelected = default(ProfilePictureSelected), InitialsProfilePictureUrl InitialsProfilePictureUrl = default(InitialsProfilePictureUrl), GravatarProfilePictureUrl GravatarProfilePictureUrl = default(GravatarProfilePictureUrl))
 {
     // to ensure "ProfilePictureSelected" is required (not null)
     if (ProfilePictureSelected == null)
     {
         throw new InvalidDataException("ProfilePictureSelected is a required property for ProfilePictureInfoWithDefault and cannot be null");
     }
     else
     {
         this.ProfilePictureSelected = ProfilePictureSelected;
     }
     // to ensure "InitialsProfilePictureUrl" is required (not null)
     if (InitialsProfilePictureUrl == null)
     {
         throw new InvalidDataException("InitialsProfilePictureUrl is a required property for ProfilePictureInfoWithDefault and cannot be null");
     }
     else
     {
         this.InitialsProfilePictureUrl = InitialsProfilePictureUrl;
     }
     // to ensure "GravatarProfilePictureUrl" is required (not null)
     if (GravatarProfilePictureUrl == null)
     {
         throw new InvalidDataException("GravatarProfilePictureUrl is a required property for ProfilePictureInfoWithDefault and cannot be null");
     }
     else
     {
         this.GravatarProfilePictureUrl = GravatarProfilePictureUrl;
     }
     this.ProfilePictureUrl = ProfilePictureUrl;
 }
예제 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProfilePictureInfo" /> class.
 /// </summary>
 /// <param name="ProfilePictureUrl">ProfilePictureUrl.</param>
 /// <param name="ProfilePictureSelected">ProfilePictureSelected (required).</param>
 public ProfilePictureInfo(ProfilePictureUrl ProfilePictureUrl = default(ProfilePictureUrl), ProfilePictureSelected ProfilePictureSelected = default(ProfilePictureSelected))
 {
     // to ensure "ProfilePictureSelected" is required (not null)
     if (ProfilePictureSelected == null)
     {
         throw new InvalidDataException("ProfilePictureSelected is a required property for ProfilePictureInfo and cannot be null");
     }
     else
     {
         this.ProfilePictureSelected = ProfilePictureSelected;
     }
     this.ProfilePictureUrl = ProfilePictureUrl;
 }
예제 #3
0
 /// <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;
 }