lib/purecloudplatformclientv2/models/channel.rb in purecloudplatformclientv2-33.1.0 vs lib/purecloudplatformclientv2/models/channel.rb in purecloudplatformclientv2-34.0.0

- old
+ new

@@ -20,29 +20,36 @@ class Channel attr_accessor :connect_uri attr_accessor :id + # Date time is represented as an ISO-8601 string. For example: yyyy-MM-ddTHH:mm:ss.SSSZ + attr_accessor :expires + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'connect_uri' => :'connectUri', - :'id' => :'id' + :'id' => :'id', + :'expires' => :'expires' + } end # Attribute type mapping. def self.swagger_types { :'connect_uri' => :'String', - :'id' => :'String' + :'id' => :'String', + :'expires' => :'DateTime' + } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -69,10 +76,19 @@ end + if attributes.has_key?(:'expires') + + + self.expires = attributes[:'expires'] + + + 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 @@ -92,10 +108,14 @@ + + + + end @@ -105,17 +125,23 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && connect_uri == o.connect_uri && - id == o.id + id == o.id && + expires == o.expires end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -123,10 +149,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [connect_uri, id].hash + [connect_uri, id, expires].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)