lib/purecloud/models/screenshare.rb in purecloud-0.56.1 vs lib/purecloud/models/screenshare.rb in purecloud-0.57.1

- old
+ new

@@ -43,10 +43,13 @@ attr_accessor :disconnected_time # The source provider for the screen share. attr_accessor :provider + # 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 { :'state' => :'state', @@ -63,12 +66,14 @@ :'connected_time' => :'connectedTime', :'disconnected_time' => :'disconnectedTime', - :'provider' => :'provider' + :'provider' => :'provider', + :'segments' => :'segments' + } end # Attribute type mapping. def self.swagger_types @@ -79,11 +84,12 @@ :'sharing' => :'BOOLEAN', :'peer_count' => :'Integer', :'disconnect_type' => :'String', :'connected_time' => :'DateTime', :'disconnected_time' => :'DateTime', - :'provider' => :'String' + :'provider' => :'String', + :'segments' => :'Array<Segment>' } end def initialize(attributes = {}) @@ -129,10 +135,16 @@ if attributes[:'provider'] self.provider = attributes[:'provider'] end + if attributes[:'segments'] + if (value = attributes[:'segments']).is_a?(Array) + self.segments = value + end + end + end # Custom attribute writer method checking allowed values (enum). def state=(state) allowed_values = ["ALERTING", "DIALING", "CONTACTING", "OFFERING", "CONNECTED", "DISCONNECTED", "TERMINATED", "NONE"] @@ -161,20 +173,21 @@ sharing == o.sharing && peer_count == o.peer_count && disconnect_type == o.disconnect_type && connected_time == o.connected_time && disconnected_time == o.disconnected_time && - provider == o.provider + provider == o.provider && + segments == o.segments 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, provider].hash + [state, id, context, sharing, peer_count, disconnect_type, connected_time, disconnected_time, provider, segments].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)