lib/purecloudplatformclientv2/models/conversation.rb in purecloudplatformclientv2-58.0.1 vs lib/purecloudplatformclientv2/models/conversation.rb in purecloudplatformclientv2-59.0.0

- old
+ new

@@ -45,10 +45,13 @@ attr_accessor :recording_state # The conversation's state attr_accessor :state + # Identifiers of divisions associated with this conversation + attr_accessor :divisions + # The URI for this object attr_accessor :self_uri # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map @@ -72,10 +75,12 @@ :'recording_state' => :'recordingState', :'state' => :'state', + :'divisions' => :'divisions', + :'self_uri' => :'selfUri' } end @@ -101,10 +106,12 @@ :'recording_state' => :'String', :'state' => :'String', + :'divisions' => :'Array<ConversationDivisionMembership>', + :'self_uri' => :'String' } end @@ -209,10 +216,21 @@ end + if attributes.has_key?(:'divisions') + + if (value = attributes[:'divisions']).is_a?(Array) + self.divisions = value + end + + + + end + + if attributes.has_key?(:'selfUri') self.self_uri = attributes[:'selfUri'] @@ -297,10 +315,14 @@ + + + + end @@ -373,10 +395,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -388,10 +415,11 @@ participants == o.participants && conversation_ids == o.conversation_ids && max_participants == o.max_participants && recording_state == o.recording_state && state == o.state && + divisions == o.divisions && self_uri == o.self_uri end # @see the `==` method # @param [Object] Object to be compared @@ -400,10 +428,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, start_time, end_time, address, participants, conversation_ids, max_participants, recording_state, state, self_uri].hash + [id, name, start_time, end_time, address, participants, conversation_ids, max_participants, recording_state, state, divisions, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)