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

- old
+ new

@@ -27,10 +27,13 @@ attr_accessor :start_time # The time when the conversation ended. This will be the time when the last participant left the conversation, or null when the conversation is still active. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :end_time + # Identifiers of divisions associated with this conversation + attr_accessor :divisions + # The URI for this object attr_accessor :self_uri attr_accessor :participants @@ -44,10 +47,12 @@ :'start_time' => :'startTime', :'end_time' => :'endTime', + :'divisions' => :'divisions', + :'self_uri' => :'selfUri', :'participants' => :'participants' } @@ -63,10 +68,12 @@ :'start_time' => :'DateTime', :'end_time' => :'DateTime', + :'divisions' => :'Array<ConversationDivisionMembership>', + :'self_uri' => :'String', :'participants' => :'Array<ParticipantBasic>' } @@ -115,10 +122,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'] @@ -179,10 +197,14 @@ + + + + end @@ -212,19 +234,25 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && id == o.id && name == o.name && start_time == o.start_time && end_time == o.end_time && + divisions == o.divisions && self_uri == o.self_uri && participants == o.participants end # @see the `==` method @@ -234,10 +262,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, start_time, end_time, self_uri, participants].hash + [id, name, start_time, end_time, divisions, self_uri, participants].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)