lib/messente_api/models/viber.rb in messente_api-2.1.0 vs lib/messente_api/models/viber.rb in messente_api-2.2.0
- old
+ new
@@ -38,10 +38,12 @@
attr_accessor :button_text
# The channel used to deliver the message
attr_accessor :channel
+ attr_accessor :video
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -70,11 +72,12 @@
:'ttl' => :'ttl',
:'text' => :'text',
:'image_url' => :'image_url',
:'button_url' => :'button_url',
:'button_text' => :'button_text',
- :'channel' => :'channel'
+ :'channel' => :'channel',
+ :'video' => :'video'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -89,11 +92,12 @@
:'ttl' => :'Integer',
:'text' => :'String',
:'image_url' => :'String',
:'button_url' => :'String',
:'button_text' => :'String',
- :'channel' => :'String'
+ :'channel' => :'String',
+ :'video' => :'ViberVideo'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -147,10 +151,14 @@
if attributes.key?(:'channel')
self.channel = attributes[:'channel']
else
self.channel = 'viber'
end
+
+ if attributes.key?(:'video')
+ self.video = attributes[:'video']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -188,11 +196,12 @@
ttl == o.ttl &&
text == o.text &&
image_url == o.image_url &&
button_url == o.button_url &&
button_text == o.button_text &&
- channel == o.channel
+ channel == o.channel &&
+ video == o.video
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -200,10 +209,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [sender, validity, ttl, text, image_url, button_url, button_text, channel].hash
+ [sender, validity, ttl, text, image_url, button_url, button_text, channel, video].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself