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

- old
+ new

@@ -35,10 +35,16 @@ # Unique Id for all versions of this form attr_accessor :context_id # Id of the header image appearing at the top of the form. + attr_accessor :header_image_id + + # Temporary URL for accessing header image + attr_accessor :header_image_url + + # Markdown text for the top of the form. attr_accessor :header # Markdown text for the bottom of the form. attr_accessor :footer @@ -65,10 +71,14 @@ :'disabled' => :'disabled', :'context_id' => :'contextId', + :'header_image_id' => :'headerImageId', + + :'header_image_url' => :'headerImageUrl', + :'header' => :'header', :'footer' => :'footer', :'question_groups' => :'questionGroups', @@ -94,10 +104,14 @@ :'disabled' => :'BOOLEAN', :'context_id' => :'String', + :'header_image_id' => :'String', + + :'header_image_url' => :'String', + :'header' => :'String', :'footer' => :'String', :'question_groups' => :'Array<QuestionGroup>', @@ -170,10 +184,28 @@ end + if attributes.has_key?(:'headerImageId') + + + self.header_image_id = attributes[:'headerImageId'] + + + end + + + if attributes.has_key?(:'headerImageUrl') + + + self.header_image_url = attributes[:'headerImageUrl'] + + + end + + if attributes.has_key?(:'header') self.header = attributes[:'header'] @@ -275,10 +307,18 @@ + + + + + + + + if @question_groups.nil? return false end @@ -349,10 +389,20 @@ + + + + + + + + + + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && @@ -360,10 +410,12 @@ name == o.name && modified_date == o.modified_date && published == o.published && disabled == o.disabled && context_id == o.context_id && + header_image_id == o.header_image_id && + header_image_url == o.header_image_url && header == o.header && footer == o.footer && question_groups == o.question_groups && published_versions == o.published_versions && self_uri == o.self_uri @@ -376,10 +428,10 @@ end # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [id, name, modified_date, published, disabled, context_id, header, footer, question_groups, published_versions, self_uri].hash + [id, name, modified_date, published, disabled, context_id, header_image_id, header_image_url, header, footer, question_groups, published_versions, self_uri].hash end # build the object from hash def build_from_hash(attributes) return nil unless attributes.is_a?(Hash)