lib/purecloudplatformclientv2/models/message_data.rb in purecloudplatformclientv2-35.0.0 vs lib/purecloudplatformclientv2/models/message_data.rb in purecloudplatformclientv2-36.0.0

- old
+ new

@@ -48,10 +48,13 @@ attr_accessor :status # The media details associated to a message. attr_accessor :media + # The sticker details associated to a message. + attr_accessor :stickers + # User who sent this message. attr_accessor :created_by # The URI for this object attr_accessor :self_uri @@ -80,10 +83,12 @@ :'status' => :'status', :'media' => :'media', + :'stickers' => :'stickers', + :'created_by' => :'createdBy', :'self_uri' => :'selfUri' } @@ -113,10 +118,12 @@ :'status' => :'String', :'media' => :'Array<MessageMedia>', + :'stickers' => :'Array<MessageSticker>', + :'created_by' => :'User', :'self_uri' => :'String' } @@ -230,10 +237,21 @@ end + if attributes.has_key?(:'stickers') + + if (value = attributes[:'stickers']).is_a?(Array) + self.stickers = value + end + + + + end + + if attributes.has_key?(:'createdBy') self.created_by = attributes[:'createdBy'] @@ -345,10 +363,14 @@ + + + + end @@ -440,10 +462,15 @@ + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -456,10 +483,11 @@ direction == o.direction && messenger_type == o.messenger_type && text_body == o.text_body && status == o.status && media == o.media && + stickers == o.stickers && created_by == o.created_by && self_uri == o.self_uri end # @see the `==` method @@ -469,10 +497,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, provider_message_id, timestamp, from_address, to_address, direction, messenger_type, text_body, status, media, created_by, self_uri].hash + [id, name, provider_message_id, timestamp, from_address, to_address, direction, messenger_type, text_body, status, media, stickers, created_by, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)