lib/purecloud/models/conversation_chat.rb in purecloud-0.50.1 vs lib/purecloud/models/conversation_chat.rb in purecloud-0.51.1

- old
+ new

@@ -16,35 +16,46 @@ require 'date' module PureCloud class ConversationChat + # The connection state of this communication. attr_accessor :state + # A globally unique identifier for this communication. attr_accessor :id + # The room id for the chat. attr_accessor :room_id + # A globally unique identifier for the recording associated with this chat. attr_accessor :recording_id + # The time line of the participant's chat, divided into activity segments. attr_accessor :segments + # True if this call is held and the person on this side hears silence. attr_accessor :held + # The direction of the chat attr_accessor :direction + # System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. attr_accessor :disconnect_type - # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The timestamp the chat was placed on hold in the cloud clock if the chat is currently on hold. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :start_hold_time - # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The timestamp when this communication was connected in the cloud clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :connected_time - # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + # The timestamp when this communication disconnected from the conversation in the provider clock. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ attr_accessor :disconnected_time + # The source provider for the email. + attr_accessor :provider + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -65,12 +76,14 @@ :'start_hold_time' => :'startHoldTime', :'connected_time' => :'connectedTime', - :'disconnected_time' => :'disconnectedTime' + :'disconnected_time' => :'disconnectedTime', + :'provider' => :'provider' + } end # Attribute type mapping. def self.swagger_types @@ -83,11 +96,12 @@ :'held' => :'BOOLEAN', :'direction' => :'String', :'disconnect_type' => :'String', :'start_hold_time' => :'DateTime', :'connected_time' => :'DateTime', - :'disconnected_time' => :'DateTime' + :'disconnected_time' => :'DateTime', + :'provider' => :'String' } end def initialize(attributes = {}) @@ -143,10 +157,14 @@ if attributes[:'disconnectedTime'] self.disconnected_time = attributes[:'disconnectedTime'] end + if attributes[:'provider'] + self.provider = attributes[:'provider'] + end + end # Custom attribute writer method checking allowed values (enum). def state=(state) allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"] @@ -186,20 +204,21 @@ held == o.held && direction == o.direction && disconnect_type == o.disconnect_type && start_hold_time == o.start_hold_time && connected_time == o.connected_time && - disconnected_time == o.disconnected_time + disconnected_time == o.disconnected_time && + provider == o.provider end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [state, id, room_id, recording_id, segments, held, direction, disconnect_type, start_hold_time, connected_time, disconnected_time].hash + [state, id, room_id, recording_id, segments, held, direction, disconnect_type, start_hold_time, connected_time, disconnected_time, provider].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)