class Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignLocalization

Model object.

Attributes

action_button_text[RW]

@return [String] Text of the action button for text/web announcements and polls (answer button).

action_url[RW]

@return [String] URL to launch when the announcement is actioned.

body[RW]

@return [String] Body of the text/web announcement, poll or data push. This field supports appInfo markers.

exit_button_text[RW]

@return [String] Text of the exit button for text/web announcements and polls.

notification_image[RW]

@return [Array<Integer>] Optional image encoded in base 64. Usually included in the right part of in app notifications (or as a banner if there is neither text nor content icon). For Android system notifications, the image is used as the large icon (displayed only on Android 3+).

notification_message[RW]

@return [String] Message of the notification. This field supports appInfo markers.

notification_options[RW]

@return [NotificationOptions] Additional platform specific options.

notification_title[RW]

@return [String] Title of the notification. This field supports appInfo markers.

payload[RW]

@return Native push payload.

title[RW]

@return [String] Title of the announcement or poll. This field supports appInfo markers.

Private Class Methods

mapper() click to toggle source

Mapper for CampaignLocalization class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb, line 62
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'CampaignLocalization',
    type: {
      name: 'Composite',
      class_name: 'CampaignLocalization',
      model_properties: {
        notification_title: {
          client_side_validation: true,
          required: false,
          serialized_name: 'notificationTitle',
          constraints: {
            MaxLength: 2000
          },
          type: {
            name: 'String'
          }
        },
        notification_message: {
          client_side_validation: true,
          required: false,
          serialized_name: 'notificationMessage',
          constraints: {
            MaxLength: 4000
          },
          type: {
            name: 'String'
          }
        },
        notification_image: {
          client_side_validation: true,
          required: false,
          serialized_name: 'notificationImage',
          constraints: {
            MaxLength: 65535
          },
          type: {
            name: 'ByteArray'
          }
        },
        notification_options: {
          client_side_validation: true,
          required: false,
          serialized_name: 'notificationOptions',
          type: {
            name: 'Composite',
            class_name: 'NotificationOptions'
          }
        },
        title: {
          client_side_validation: true,
          required: false,
          serialized_name: 'title',
          constraints: {
            MaxLength: 128
          },
          type: {
            name: 'String'
          }
        },
        body: {
          client_side_validation: true,
          required: false,
          serialized_name: 'body',
          constraints: {
            MaxLength: 65535
          },
          type: {
            name: 'String'
          }
        },
        action_button_text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionButtonText',
          constraints: {
            MaxLength: 64
          },
          type: {
            name: 'String'
          }
        },
        exit_button_text: {
          client_side_validation: true,
          required: false,
          serialized_name: 'exitButtonText',
          constraints: {
            MaxLength: 64
          },
          type: {
            name: 'String'
          }
        },
        action_url: {
          client_side_validation: true,
          required: false,
          serialized_name: 'actionUrl',
          constraints: {
            MaxLength: 2000
          },
          type: {
            name: 'String'
          }
        },
        payload: {
          client_side_validation: true,
          required: false,
          serialized_name: 'payload',
          type: {
            name: 'Object'
          }
        }
      }
    }
  }
end