/// <summary> /// Initializes a new instance of the <see cref="TrustRequest" /> class. /// </summary> /// <param name="CreatedBy">User who created this request..</param> /// <param name="Trustee">Trustee organization who generated this request. (required).</param> /// <param name="Users">The list of trustee users that are requesting access..</param> /// <param name="Groups">The list of trustee groups that are requesting access..</param> public TrustRequest(OrgUser CreatedBy = null, Organization Trustee = null, List <OrgUser> Users = null, List <TrustGroup> Groups = null) { this.CreatedBy = CreatedBy; this.Trustee = Trustee; this.Users = Users; this.Groups = Groups; }
/// <summary> /// Initializes a new instance of the <see cref="TrustRequest" /> class. /// </summary> /// <param name="CreatedBy">User who created this request..</param> /// <param name="Trustee">Trustee organization who generated this request. (required).</param> /// <param name="Users">The list of trustee users that are requesting access. (required).</param> public TrustRequest(OrgUser CreatedBy = null, Organization Trustee = null, List <OrgUser> Users = null) { // to ensure "Trustee" is required (not null) if (Trustee == null) { throw new InvalidDataException("Trustee is a required property for TrustRequest and cannot be null"); } else { this.Trustee = Trustee; } // to ensure "Users" is required (not null) if (Users == null) { throw new InvalidDataException("Users is a required property for TrustRequest and cannot be null"); } else { this.Users = Users; } this.CreatedBy = CreatedBy; }
/// <summary> /// Initializes a new instance of the <see cref="Trustor" /> class. /// </summary> /// <param name="Enabled">If disabled no trustee user will have access, even if they were previously added. (required).</param> /// <param name="CreatedBy">User that created trust..</param> /// <param name="Organization">Organization associated with this trust..</param> /// <param name="Authorization">Authorization for the trustee user has in this trustor organization.</param> public Trustor(bool?Enabled = null, OrgUser CreatedBy = null, Organization Organization = null, TrusteeAuthorization Authorization = null) { this.Enabled = Enabled; this.CreatedBy = CreatedBy; this.Organization = Organization; this.Authorization = Authorization; }
/// <summary> /// Initializes a new instance of the <see cref="Trustor" /> class. /// </summary> /// <param name="Enabled">If disabled no trustee user will have access, even if they were previously added. (required).</param> /// <param name="CreatedBy">User that created trust..</param> /// <param name="Organization">Organization associated with this trust..</param> public Trustor(bool?Enabled = null, OrgUser CreatedBy = null, Organization Organization = null) { // to ensure "Enabled" is required (not null) if (Enabled == null) { throw new InvalidDataException("Enabled is a required property for Trustor and cannot be null"); } else { this.Enabled = Enabled; } this.CreatedBy = CreatedBy; this.Organization = Organization; }
/// <summary> /// Initializes a new instance of the <see cref="TrustUserDetails" /> class. /// </summary> /// <param name="CreatedBy">User that added trusted user..</param> public TrustUserDetails(OrgUser CreatedBy = null) { this.CreatedBy = CreatedBy; }
/// <summary> /// Initializes a new instance of the <see cref="TrustGroup" /> class. /// </summary> /// <param name="Name">The group name. (required).</param> /// <param name="Description">Description.</param> /// <param name="Type">Type of group. (required).</param> /// <param name="Images">Images.</param> /// <param name="Addresses">Addresses.</param> /// <param name="RulesVisible">Are membership rules visible to the person requesting to view the group (required).</param> /// <param name="Visibility">Who can view this group (required).</param> /// <param name="Owners">Owners of the group.</param> /// <param name="CreatedBy">The user that added trusted group..</param> public TrustGroup(string Name = null, string Description = null, TypeEnum?Type = null, List <UserImage> Images = null, List <GroupContact> Addresses = null, bool?RulesVisible = null, VisibilityEnum?Visibility = null, List <User> Owners = null, OrgUser CreatedBy = null) { this.Name = Name; this.Description = Description; this.Type = Type; this.Images = Images; this.Addresses = Addresses; this.RulesVisible = RulesVisible; this.Visibility = Visibility; this.Owners = Owners; this.CreatedBy = CreatedBy; }
/// <summary> /// Initializes a new instance of the <see cref="Trustee" /> class. /// </summary> /// <param name="Enabled">If disabled no trustee user will have access, even if they were previously added. (required).</param> /// <param name="CreatedBy">User that created trust..</param> /// <param name="Organization">Organization associated with this trust..</param> public Trustee(bool?Enabled = null, OrgUser CreatedBy = null, Organization Organization = null) { this.Enabled = Enabled; this.CreatedBy = CreatedBy; this.Organization = Organization; }
/// <summary> /// Initializes a new instance of the <see cref="TrustGroup" /> class. /// </summary> /// <param name="Name">The group name. (required).</param> /// <param name="Description">Description.</param> /// <param name="Type">Type of group. (required).</param> /// <param name="Images">Images.</param> /// <param name="Addresses">Addresses.</param> /// <param name="RulesVisible">Are membership rules visible to the person requesting to view the group (required).</param> /// <param name="Visibility">Who can view this group (required).</param> /// <param name="Owners">Owners of the group.</param> /// <param name="CreatedBy">The user that added trusted group..</param> public TrustGroup(string Name = null, string Description = null, TypeEnum?Type = null, List <UserImage> Images = null, List <GroupContact> Addresses = null, bool?RulesVisible = null, VisibilityEnum?Visibility = null, List <User> Owners = null, OrgUser CreatedBy = null) { // to ensure "Name" is required (not null) if (Name == null) { throw new InvalidDataException("Name is a required property for TrustGroup and cannot be null"); } else { this.Name = Name; } // to ensure "Type" is required (not null) if (Type == null) { throw new InvalidDataException("Type is a required property for TrustGroup and cannot be null"); } else { this.Type = Type; } // to ensure "RulesVisible" is required (not null) if (RulesVisible == null) { throw new InvalidDataException("RulesVisible is a required property for TrustGroup and cannot be null"); } else { this.RulesVisible = RulesVisible; } // to ensure "Visibility" is required (not null) if (Visibility == null) { throw new InvalidDataException("Visibility is a required property for TrustGroup and cannot be null"); } else { this.Visibility = Visibility; } this.Description = Description; this.Images = Images; this.Addresses = Addresses; this.Owners = Owners; this.CreatedBy = CreatedBy; }