lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-52.0.0 vs lib/purecloudplatformclientv2/models/video.rb in purecloudplatformclientv2-53.0.0

- old
+ new

@@ -5,14 +5,14 @@ OpenAPI spec version: v2 Contact: DeveloperEvangelists@genesys.com Generated by: https://github.com/swagger-api/swagger-codegen.git -License: ININ -http://www.inin.com +License: UNLICENSED +https://help.mypurecloud.com/articles/terms-and-conditions/ -Terms of Service: https://developer.mypurecloud.com/tos +Terms of Service: https://help.mypurecloud.com/articles/terms-and-conditions/ =end require 'date' @@ -40,10 +40,13 @@ attr_accessor :peer_count # System defined string indicating what caused the communication to disconnect. Will be null until the communication disconnects. attr_accessor :disconnect_type + # The timestamp the communication has when it is first put into an alerting state. Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + attr_accessor :start_alerting_time + # 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 # 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 @@ -55,10 +58,13 @@ attr_accessor :peer_id # List of media stream ids attr_accessor :msids + # Address and name data for a call endpoint. + attr_accessor :_self + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'state' => :'state', @@ -75,20 +81,24 @@ :'peer_count' => :'peerCount', :'disconnect_type' => :'disconnectType', + :'start_alerting_time' => :'startAlertingTime', + :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', :'provider' => :'provider', :'peer_id' => :'peerId', - :'msids' => :'msids' + :'msids' => :'msids', + :'_self' => :'self' + } end # Attribute type mapping. def self.swagger_types @@ -108,20 +118,24 @@ :'peer_count' => :'Integer', :'disconnect_type' => :'String', + :'start_alerting_time' => :'DateTime', + :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', :'provider' => :'String', :'peer_id' => :'String', - :'msids' => :'Array<String>' + :'msids' => :'Array<String>', + :'_self' => :'Address' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -202,10 +216,19 @@ end + if attributes.has_key?(:'startAlertingTime') + + + self.start_alerting_time = attributes[:'startAlertingTime'] + + + end + + if attributes.has_key?(:'connectedTime') self.connected_time = attributes[:'connectedTime'] @@ -249,10 +272,19 @@ end + if attributes.has_key?(:'self') + + + self._self = attributes[:'self'] + + + 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 @@ -326,10 +358,18 @@ + + + + + + + + end # Custom attribute writer method checking allowed values (enum). @@ -412,10 +452,20 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -425,15 +475,17 @@ audio_muted == o.audio_muted && video_muted == o.video_muted && sharing_screen == o.sharing_screen && peer_count == o.peer_count && disconnect_type == o.disconnect_type && + start_alerting_time == o.start_alerting_time && connected_time == o.connected_time && disconnected_time == o.disconnected_time && provider == o.provider && peer_id == o.peer_id && - msids == o.msids + msids == o.msids && + _self == o._self end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -441,10 +493,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, msids].hash + [state, id, context, audio_muted, video_muted, sharing_screen, peer_count, disconnect_type, start_alerting_time, connected_time, disconnected_time, provider, peer_id, msids, _self].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)