lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -49,10 +49,13 @@ attr_accessor :disconnected_time # The source provider for the video. attr_accessor :provider + # The id of the peer communication corresponding to a matching leg for this communication. + attr_accessor :peer_id + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', :'id' => :'id', @@ -62,11 +65,12 @@ :'sharing_screen' => :'sharingScreen', :'peer_count' => :'peerCount', :'disconnect_type' => :'disconnectType', :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', - :'provider' => :'provider' + :'provider' => :'provider', + :'peer_id' => :'peerId' } end # Attribute type mapping. def self.swagger_types @@ -79,11 +83,12 @@ :'sharing_screen' => :'BOOLEAN', :'peer_count' => :'Integer', :'disconnect_type' => :'String', :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', - :'provider' => :'String' + :'provider' => :'String', + :'peer_id' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -135,10 +140,14 @@ if attributes.has_key?(:'provider') self.provider = attributes[:'provider'] end + if attributes.has_key?(:'peerId') + self.peer_id = attributes[:'peerId'] + end + end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properies with the reasons def list_invalid_properties @@ -192,11 +201,12 @@ sharing_screen == o.sharing_screen && peer_count == o.peer_count && disconnect_type == o.disconnect_type && connected_time == o.connected_time && disconnected_time == o.disconnected_time && - provider == o.provider + provider == o.provider && + peer_id == o.peer_id end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -204,10 +214,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, connected_time, disconnected_time, provider].hash + [state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, connected_time, disconnected_time, provider, peer_id].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)