lib/purecloudplatformclientv2/models/screenshare.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/screenshare.rb in purecloudplatformclientv2-7.0.0
- old
+ new
@@ -43,10 +43,13 @@
attr_accessor :disconnected_time
# The source provider for the screen share.
attr_accessor :provider
+ # The id of the peer communication corresponding to a matching leg for this communication.
+ attr_accessor :peer_id
+
# The time line of the participant's call, divided into activity segments.
attr_accessor :segments
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
@@ -58,10 +61,11 @@
:'peer_count' => :'peerCount',
:'disconnect_type' => :'disconnectType',
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
:'provider' => :'provider',
+ :'peer_id' => :'peerId',
:'segments' => :'segments'
}
end
# Attribute type mapping.
@@ -74,10 +78,11 @@
:'peer_count' => :'Integer',
:'disconnect_type' => :'String',
:'connected_time' => :'DateTime',
:'disconnected_time' => :'DateTime',
:'provider' => :'String',
+ :'peer_id' => :'String',
:'segments' => :'Array<Segment>'
}
end
# Initializes the object
@@ -122,10 +127,14 @@
if attributes.has_key?(:'provider')
self.provider = attributes[:'provider']
end
+ if attributes.has_key?(:'peerId')
+ self.peer_id = attributes[:'peerId']
+ end
+
if attributes.has_key?(:'segments')
if (value = attributes[:'segments']).is_a?(Array)
self.segments = value
end
end
@@ -184,10 +193,11 @@
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 &&
segments == o.segments
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -196,10 +206,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [state, id, context, sharing, peer_count, disconnect_type, connected_time, disconnected_time, provider, segments].hash
+ [state, id, context, sharing, peer_count, disconnect_type, connected_time, disconnected_time, provider, peer_id, segments].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)