示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="TrustUser" /> class.
        /// </summary>



        /// <param name="Name">Name.</param>



        /// <param name="Chat">Chat.</param>



        /// <param name="Department">Department.</param>



        /// <param name="Email">Email.</param>



        /// <param name="PrimaryContactInfo">Auto populated from addresses..</param>



        /// <param name="Addresses">Email addresses and phone numbers for this user.</param>



        /// <param name="Title">Title.</param>



        /// <param name="Username">Username.</param>



        /// <param name="Manager">Manager.</param>



        /// <param name="Images">Images.</param>



        /// <param name="Version">Required when updating a user, this value should be the current version of the user.  The current version can be obtained with a GET on the user before doing a PATCH. (required).</param>



        /// <param name="RoutingStatus">ACD routing status.</param>



        /// <param name="Presence">Active presence.</param>



        /// <param name="ConversationSummary">Summary of conversion statistics for conversation types..</param>



        /// <param name="OutOfOffice">Determine if out of office is enabled.</param>



        /// <param name="Geolocation">Current geolocation position.</param>



        /// <param name="Station">Effective, default, and last station information.</param>



        /// <param name="Authorization">Roles and permissions assigned to the user.</param>



        /// <param name="ProfileSkills">Skills possessed by the user.</param>



        /// <param name="Locations">The user placement at each site location..</param>



        /// <param name="Groups">The groups the user is a member of.</param>



        /// <param name="AcdAutoAnswer">acd auto answer.</param>



        /// <param name="TrustUserDetails">TrustUserDetails.</param>


        public TrustUser(string Name = null, Chat Chat = null, string Department = null, string Email = null, List <Contact> PrimaryContactInfo = null, List <Contact> Addresses = null, string Title = null, string Username = null, User Manager = null, List <UserImage> Images = null, int?Version = null, RoutingStatus RoutingStatus = null, UserPresence Presence = null, UserConversationSummary ConversationSummary = null, OutOfOffice OutOfOffice = null, Geolocation Geolocation = null, UserStations Station = null, UserAuthorization Authorization = null, List <string> ProfileSkills = null, List <Location> Locations = null, List <Group> Groups = null, bool?AcdAutoAnswer = null, TrustUserDetails TrustUserDetails = null)
        {
            // to ensure "Version" is required (not null)
            if (Version == null)
            {
                throw new InvalidDataException("Version is a required property for TrustUser and cannot be null");
            }
            else
            {
                this.Version = Version;
            }



            this.Name = Name;



            this.Chat = Chat;



            this.Department = Department;



            this.Email = Email;



            this.PrimaryContactInfo = PrimaryContactInfo;



            this.Addresses = Addresses;



            this.Title = Title;



            this.Username = Username;



            this.Manager = Manager;



            this.Images = Images;



            this.RoutingStatus = RoutingStatus;



            this.Presence = Presence;



            this.ConversationSummary = ConversationSummary;



            this.OutOfOffice = OutOfOffice;



            this.Geolocation = Geolocation;



            this.Station = Station;



            this.Authorization = Authorization;



            this.ProfileSkills = ProfileSkills;



            this.Locations = Locations;



            this.Groups = Groups;



            this.AcdAutoAnswer = AcdAutoAnswer;



            this.TrustUserDetails = TrustUserDetails;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="TrustUser" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="Chat">Chat.</param>
 /// <param name="Department">Department.</param>
 /// <param name="Email">Email.</param>
 /// <param name="PrimaryContactInfo">Auto populated from addresses..</param>
 /// <param name="Addresses">Email addresses and phone numbers for this user.</param>
 /// <param name="Title">Title.</param>
 /// <param name="Username">Username.</param>
 /// <param name="Manager">Manager.</param>
 /// <param name="Images">Images.</param>
 /// <param name="Version">Required when updating a user, this value should be the current version of the user.  The current version can be obtained with a GET on the user before doing a PATCH. (required).</param>
 /// <param name="Certifications">Certifications.</param>
 /// <param name="Biography">Biography.</param>
 /// <param name="EmployerInfo">EmployerInfo.</param>
 /// <param name="RoutingStatus">ACD routing status.</param>
 /// <param name="Presence">Active presence.</param>
 /// <param name="ConversationSummary">Summary of conversion statistics for conversation types..</param>
 /// <param name="OutOfOffice">Determine if out of office is enabled.</param>
 /// <param name="Geolocation">Current geolocation position.</param>
 /// <param name="Station">Effective, default, and last station information.</param>
 /// <param name="Authorization">Roles and permissions assigned to the user.</param>
 /// <param name="ProfileSkills">Profile skills possessed by the user.</param>
 /// <param name="Locations">The user placement at each site location..</param>
 /// <param name="Groups">The groups the user is a member of.</param>
 /// <param name="Skills">Routing (ACD) skills possessed by the user.</param>
 /// <param name="Languages">Routing (ACD) languages possessed by the user.</param>
 /// <param name="AcdAutoAnswer">acd auto answer.</param>
 /// <param name="LastTokenIssued">LastTokenIssued.</param>
 /// <param name="TrustUserDetails">TrustUserDetails.</param>
 public TrustUser(string Name = null, Division Division = null, Chat Chat = null, string Department = null, string Email = null, List <Contact> PrimaryContactInfo = null, List <Contact> Addresses = null, string Title = null, string Username = null, User Manager = null, List <UserImage> Images = null, int?Version = null, List <string> Certifications = null, Biography Biography = null, EmployerInfo EmployerInfo = null, RoutingStatus RoutingStatus = null, UserPresence Presence = null, UserConversationSummary ConversationSummary = null, OutOfOffice OutOfOffice = null, Geolocation Geolocation = null, UserStations Station = null, UserAuthorization Authorization = null, List <string> ProfileSkills = null, List <Location> Locations = null, List <Group> Groups = null, List <UserRoutingSkill> Skills = null, List <UserRoutingLanguage> Languages = null, bool?AcdAutoAnswer = null, OAuthLastTokenIssued LastTokenIssued = null, TrustUserDetails TrustUserDetails = null)
 {
     this.Name                = Name;
     this.Division            = Division;
     this.Chat                = Chat;
     this.Department          = Department;
     this.Email               = Email;
     this.PrimaryContactInfo  = PrimaryContactInfo;
     this.Addresses           = Addresses;
     this.Title               = Title;
     this.Username            = Username;
     this.Manager             = Manager;
     this.Images              = Images;
     this.Version             = Version;
     this.Certifications      = Certifications;
     this.Biography           = Biography;
     this.EmployerInfo        = EmployerInfo;
     this.RoutingStatus       = RoutingStatus;
     this.Presence            = Presence;
     this.ConversationSummary = ConversationSummary;
     this.OutOfOffice         = OutOfOffice;
     this.Geolocation         = Geolocation;
     this.Station             = Station;
     this.Authorization       = Authorization;
     this.ProfileSkills       = ProfileSkills;
     this.Locations           = Locations;
     this.Groups              = Groups;
     this.Skills              = Skills;
     this.Languages           = Languages;
     this.AcdAutoAnswer       = AcdAutoAnswer;
     this.LastTokenIssued     = LastTokenIssued;
     this.TrustUserDetails    = TrustUserDetails;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TrustUser" /> class.
 /// </summary>
 /// <param name="Name">Name.</param>
 /// <param name="Division">The division to which this entity belongs..</param>
 /// <param name="Chat">Chat.</param>
 /// <param name="Department">Department.</param>
 /// <param name="Email">Email.</param>
 /// <param name="Addresses">Email addresses and phone numbers for this user.</param>
 /// <param name="Title">Title.</param>
 /// <param name="Username">Username.</param>
 /// <param name="Manager">Manager.</param>
 /// <param name="Images">Images.</param>
 /// <param name="Version">Required when updating a user, this value should be the current version of the user.  The current version can be obtained with a GET on the user before doing a PATCH. (required).</param>
 /// <param name="Certifications">Certifications.</param>
 /// <param name="Biography">Biography.</param>
 /// <param name="EmployerInfo">EmployerInfo.</param>
 /// <param name="AcdAutoAnswer">acd auto answer.</param>
 /// <param name="LastTokenIssued">LastTokenIssued.</param>
 /// <param name="TrustUserDetails">TrustUserDetails.</param>
 public TrustUser(string Name = null, Division Division = null, Chat Chat = null, string Department = null, string Email = null, List <Contact> Addresses = null, string Title = null, string Username = null, User Manager = null, List <UserImage> Images = null, int?Version = null, List <string> Certifications = null, Biography Biography = null, EmployerInfo EmployerInfo = null, bool?AcdAutoAnswer = null, OAuthLastTokenIssued LastTokenIssued = null, TrustUserDetails TrustUserDetails = null)
 {
     this.Name             = Name;
     this.Division         = Division;
     this.Chat             = Chat;
     this.Department       = Department;
     this.Email            = Email;
     this.Addresses        = Addresses;
     this.Title            = Title;
     this.Username         = Username;
     this.Manager          = Manager;
     this.Images           = Images;
     this.Version          = Version;
     this.Certifications   = Certifications;
     this.Biography        = Biography;
     this.EmployerInfo     = EmployerInfo;
     this.AcdAutoAnswer    = AcdAutoAnswer;
     this.LastTokenIssued  = LastTokenIssued;
     this.TrustUserDetails = TrustUserDetails;
 }