lib/purecloud/models/conversation_notification_chats.rb in purecloud-0.52.1 vs lib/purecloud/models/conversation_notification_chats.rb in purecloud-0.53.1

- old
+ new

@@ -34,10 +34,12 @@ attr_accessor :state attr_accessor :room_id + attr_accessor :provider + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'disconnect_type' => :'disconnectType', @@ -54,12 +56,14 @@ :'start_hold_time' => :'startHoldTime', :'state' => :'state', - :'room_id' => :'roomId' + :'room_id' => :'roomId', + :'provider' => :'provider' + } end # Attribute type mapping. def self.swagger_types @@ -70,11 +74,12 @@ :'held' => :'BOOLEAN', :'connected_time' => :'DateTime', :'additional_properties' => :'Object', :'start_hold_time' => :'DateTime', :'state' => :'String', - :'room_id' => :'String' + :'room_id' => :'String', + :'provider' => :'String' } end def initialize(attributes = {}) @@ -118,10 +123,14 @@ if attributes[:'roomId'] self.room_id = attributes[:'roomId'] end + if attributes[:'provider'] + self.provider = attributes[:'provider'] + end + end # Custom attribute writer method checking allowed values (enum). def disconnect_type=(disconnect_type) allowed_values = ["ENDPOINT", "CLIENT", "SYSTEM", "TIMEOUT", "TRANSFER", "TRANSFER_CONFERENCE", "TRANSFER_CONSULT", "TRANSFER_NOANSWER", "TRANSFER_NOTAVAILABLE", "TRANSFER_FORWARD", "TRANSPORT_FAILURE", "ERROR", "PEER", "OTHER", "SPAM"] @@ -150,20 +159,21 @@ held == o.held && connected_time == o.connected_time && additional_properties == o.additional_properties && start_hold_time == o.start_hold_time && state == o.state && - room_id == o.room_id + room_id == o.room_id && + provider == o.provider end # @see the `==` method def eql?(o) self == o end # Calculate hash code according to all attributes. def hash - [disconnect_type, id, disconnected_time, held, connected_time, additional_properties, start_hold_time, state, room_id].hash + [disconnect_type, id, disconnected_time, held, connected_time, additional_properties, start_hold_time, state, room_id, provider].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)