Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="UserMe" /> 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="Date">The PureCloud system date time..</param>
 /// <param name="GeolocationSettings">Geolocation settings for user&#39;s organization..</param>
 /// <param name="Organization">Organization details for this user..</param>
 /// <param name="PresenceDefinitions">The first 100 presence definitions for user&#39;s organization..</param>
 /// <param name="LocationDefinitions">The first 100 site locations for user&#39;s organization.</param>
 /// <param name="OrgAuthorization">The first 100 organization roles, with applicable permission policies, for user&#39;s organization..</param>
 /// <param name="Favorites">The first 50 favorited users..</param>
 /// <param name="Superiors">The first 50 superiors of this user..</param>
 /// <param name="DirectReports">The first 50 direct reports to this user..</param>
 /// <param name="Adjacents">The first 50 superiors, direct reports, and siblings of this user. Mutually exclusive with superiors and direct reports expands..</param>
 /// <param name="RoutingSkills">The first 50 routing skills for user&#39;s organizations.</param>
 /// <param name="FieldConfigs">The field config for all entities types of user&#39;s organization.</param>
 public UserMe(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, ServerDate Date = null, GeolocationSettings GeolocationSettings = null, Organization Organization = null, List <OrganizationPresence> PresenceDefinitions = null, List <LocationDefinition> LocationDefinitions = null, List <DomainOrganizationRole> OrgAuthorization = null, List <User> Favorites = null, List <User> Superiors = null, List <User> DirectReports = null, Adjacents Adjacents = null, List <RoutingSkill> RoutingSkills = null, FieldConfigs FieldConfigs = null)
 {
     // to ensure "Version" is required (not null)
     if (Version == null)
     {
         throw new InvalidDataException("Version is a required property for UserMe 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.Date                = Date;
     this.GeolocationSettings = GeolocationSettings;
     this.Organization        = Organization;
     this.PresenceDefinitions = PresenceDefinitions;
     this.LocationDefinitions = LocationDefinitions;
     this.OrgAuthorization    = OrgAuthorization;
     this.Favorites           = Favorites;
     this.Superiors           = Superiors;
     this.DirectReports       = DirectReports;
     this.Adjacents           = Adjacents;
     this.RoutingSkills       = RoutingSkills;
     this.FieldConfigs        = FieldConfigs;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="User" /> 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>
 public User(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)
 {
     // to ensure "Version" is required (not null)
     if (Version == null)
     {
         throw new InvalidDataException("Version is a required property for User 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;
 }