lib/purecloud/models/screenshare.rb in purecloud-0.52.1 vs lib/purecloud/models/screenshare.rb in purecloud-0.53.1
- old
+ new
@@ -40,10 +40,13 @@
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
+ # The source provider for the screen share.
+ attr_accessor :provider
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'state' => :'state',
@@ -58,12 +61,14 @@
:'disconnect_type' => :'disconnectType',
:'connected_time' => :'connectedTime',
- :'disconnected_time' => :'disconnectedTime'
+ :'disconnected_time' => :'disconnectedTime',
+ :'provider' => :'provider'
+
}
end
# Attribute type mapping.
def self.swagger_types
@@ -73,11 +78,12 @@
:'context' => :'String',
:'sharing' => :'BOOLEAN',
:'peer_count' => :'Integer',
:'disconnect_type' => :'String',
:'connected_time' => :'DateTime',
- :'disconnected_time' => :'DateTime'
+ :'disconnected_time' => :'DateTime',
+ :'provider' => :'String'
}
end
def initialize(attributes = {})
@@ -119,10 +125,14 @@
if attributes[:'disconnectedTime']
self.disconnected_time = attributes[:'disconnectedTime']
end
+ if attributes[:'provider']
+ self.provider = attributes[:'provider']
+ end
+
end
# Custom attribute writer method checking allowed values (enum).
def state=(state)
allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"]
@@ -150,20 +160,21 @@
context == o.context &&
sharing == o.sharing &&
peer_count == o.peer_count &&
disconnect_type == o.disconnect_type &&
connected_time == o.connected_time &&
- disconnected_time == o.disconnected_time
+ disconnected_time == o.disconnected_time &&
+ provider == o.provider
end
# @see the `==` method
def eql?(o)
self == o
end
# Calculate hash code according to all attributes.
def hash
- [state, id, context, sharing, peer_count, disconnect_type, connected_time, disconnected_time].hash
+ [state, id, context, sharing, peer_count, disconnect_type, connected_time, disconnected_time, provider].hash
end
# build the object from hash
def build_from_hash(attributes)
return nil unless attributes.is_a?(Hash)