lib/purecloud/models/user.rb in purecloud-0.28.0 vs lib/purecloud/models/user.rb in purecloud-0.29.1

- old
+ new

@@ -32,11 +32,11 @@ # ACD routing status attr_accessor :routing_status # Active presence - attr_accessor :primary_presence + attr_accessor :presence # Summary of conversion statistics for conversation types. attr_accessor :conversation_summary # Determine if out of office is enabled @@ -82,11 +82,11 @@ :'version' => :'version', :'routing_status' => :'routingStatus', - :'primary_presence' => :'primaryPresence', + :'presence' => :'presence', :'conversation_summary' => :'conversationSummary', :'out_of_office' => :'outOfOffice', @@ -115,11 +115,11 @@ :'title' => :'String', :'username' => :'String', :'images' => :'Array<UserImage>', :'version' => :'String', :'routing_status' => :'RoutingStatus', - :'primary_presence' => :'UserPresence', + :'presence' => :'UserPresence', :'conversation_summary' => :'UserConversationSummary', :'out_of_office' => :'OutOfOffice', :'geolocation' => :'Geolocation', :'station' => :'UserStations', :'authorization' => :'UserAuthorization', @@ -191,12 +191,12 @@ if attributes[:'routingStatus'] self.routing_status = attributes[:'routingStatus'] end - if attributes[:'primaryPresence'] - self.primary_presence = attributes[:'primaryPresence'] + if attributes[:'presence'] + self.presence = attributes[:'presence'] end if attributes[:'conversationSummary'] self.conversation_summary = attributes[:'conversationSummary'] end @@ -247,11 +247,11 @@ title == o.title && username == o.username && images == o.images && version == o.version && routing_status == o.routing_status && - primary_presence == o.primary_presence && + presence == o.presence && conversation_summary == o.conversation_summary && out_of_office == o.out_of_office && geolocation == o.geolocation && station == o.station && authorization == o.authorization && @@ -263,10 +263,10 @@ self == o end # Calculate hash code according to all attributes. def hash - [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, images, version, routing_status, primary_presence, conversation_summary, out_of_office, geolocation, station, authorization, self_uri].hash + [id, name, chat, department, email, primary_contact_info, addresses, state, title, username, images, version, routing_status, presence, conversation_summary, out_of_office, geolocation, station, authorization, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)