lib/purecloudplatformclientv2/models/contact.rb in purecloudplatformclientv2-6.0.0 vs lib/purecloudplatformclientv2/models/contact.rb in purecloudplatformclientv2-7.0.0

- old
+ new

@@ -26,27 +26,32 @@ attr_accessor :media_type attr_accessor :type + # Use extension instead of address for setting internal extensions + attr_accessor :extension + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'address' => :'address', :'display' => :'display', :'media_type' => :'mediaType', - :'type' => :'type' + :'type' => :'type', + :'extension' => :'extension' } end # Attribute type mapping. def self.swagger_types { :'address' => :'String', :'display' => :'String', :'media_type' => :'String', - :'type' => :'String' + :'type' => :'String', + :'extension' => :'String' } end # Initializes the object # @param [Hash] attributes Model attributes in the form of hash @@ -70,10 +75,14 @@ if attributes.has_key?(:'type') self.type = attributes[:'type'] end + if attributes.has_key?(:'extension') + self.extension = attributes[:'extension'] + 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 @@ -120,11 +129,12 @@ return true if self.equal?(o) self.class == o.class && address == o.address && display == o.display && media_type == o.media_type && - type == o.type + type == o.type && + extension == o.extension end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -132,10 +142,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [address, display, media_type, type].hash + [address, display, media_type, type, extension].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)