lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-29.0.0 vs lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-30.0.0

- old
+ new

@@ -52,10 +52,13 @@ attr_accessor :provider # The id of the peer communication corresponding to a matching leg for this communication. attr_accessor :peer_id + # List of media stream ids + attr_accessor :msids + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -78,12 +81,14 @@ :'disconnected_time' => :'disconnectedTime', :'provider' => :'provider', - :'peer_id' => :'peerId' + :'peer_id' => :'peerId', + :'msids' => :'msids' + } end # Attribute type mapping. def self.swagger_types @@ -109,12 +114,14 @@ :'disconnected_time' => :'DateTime', :'provider' => :'String', - :'peer_id' => :'String' + :'peer_id' => :'String', + :'msids' => :'Array<String>' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -231,10 +238,21 @@ end + if attributes.has_key?(:'msids') + + if (value = attributes[:'msids']).is_a?(Array) + self.msids = value + end + + + + 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 @@ -304,10 +322,14 @@ + + + + end # Custom attribute writer method checking allowed values (enum). @@ -385,10 +407,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 && @@ -401,11 +428,12 @@ peer_count == o.peer_count && disconnect_type == o.disconnect_type && connected_time == o.connected_time && disconnected_time == o.disconnected_time && provider == o.provider && - peer_id == o.peer_id + peer_id == o.peer_id && + msids == o.msids end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -413,10 +441,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, peer_id].hash + [state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, connected_time, disconnected_time, provider, peer_id, msids].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)