lib/purecloudplatformclientv2/models/social_expression.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/social_expression.rb in purecloudplatformclientv2-7.0.0
- old
+ new
@@ -58,10 +58,13 @@
attr_accessor :disconnected_time
# The source provider for the social expression.
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',
@@ -74,11 +77,12 @@
:'held' => :'held',
:'disconnect_type' => :'disconnectType',
:'start_hold_time' => :'startHoldTime',
:'connected_time' => :'connectedTime',
:'disconnected_time' => :'disconnectedTime',
- :'provider' => :'provider'
+ :'provider' => :'provider',
+ :'peer_id' => :'peerId'
}
end
# Attribute type mapping.
def self.swagger_types
@@ -94,11 +98,12 @@
:'held' => :'BOOLEAN',
:'disconnect_type' => :'String',
:'start_hold_time' => :'DateTime',
:'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
@@ -164,10 +169,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
@@ -224,11 +233,12 @@
held == o.held &&
disconnect_type == o.disconnect_type &&
start_hold_time == o.start_hold_time &&
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)
@@ -236,10 +246,10 @@
end
# Calculates hash code according to all attributes.
# @return [Fixnum] Hash code
def hash
- [state, id, social_media_id, social_media_hub, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, connected_time, disconnected_time, provider].hash
+ [state, id, social_media_id, social_media_hub, social_user_name, preview_text, recording_id, segments, held, disconnect_type, start_hold_time, 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)