Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::CampaignLocalization

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb

Overview

Model object.

Direct Known Subclasses

Campaign

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#action_button_textString

and polls (answer button).

Returns:

  • (String)

    Text of the action button for text/web announcements



45
46
47
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 45

def action_button_text
  @action_button_text
end

#action_urlString

Returns URL to launch when the announcement is actioned.

Returns:

  • (String)

    URL to launch when the announcement is actioned.



52
53
54
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 52

def action_url
  @action_url
end

#bodyString

This field supports appInfo markers.

Returns:

  • (String)

    Body of the text/web announcement, poll or data push.



41
42
43
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 41

def body
  @body
end

#exit_button_textString

polls.

Returns:

  • (String)

    Text of the exit button for text/web announcements and



49
50
51
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 49

def exit_button_text
  @exit_button_text
end

#notification_imageArray<Integer>

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+).

Returns:

  • (Array<Integer>)

    Optional image encoded in base 64. Usually



30
31
32
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 30

def notification_image
  @notification_image
end

#notification_messageString

appInfo markers.

Returns:

  • (String)

    Message of the notification. This field supports



22
23
24
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 22

def notification_message
  @notification_message
end

#notification_optionsNotificationOptions

Returns Additional platform specific options.

Returns:



33
34
35
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 33

def notification_options
  @notification_options
end

#notification_titleString

markers.

Returns:

  • (String)

    Title of the notification. This field supports appInfo



18
19
20
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 18

def notification_title
  @notification_title
end

#payloadObject

Returns Native push payload.

Returns:

  • Native push payload.



55
56
57
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 55

def payload
  @payload
end

#titleString

appInfo markers.

Returns:

  • (String)

    Title of the announcement or poll. This field supports



37
38
39
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 37

def title
  @title
end

Class Method Details

.mapperObject

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



62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/campaign_localization.rb', line 62

def self.mapper()
  {
    required: false,
    serialized_name: 'CampaignLocalization',
    type: {
      name: 'Composite',
      class_name: 'CampaignLocalization',
      model_properties: {
        notification_title: {
          required: false,
          serialized_name: 'notificationTitle',
          constraints: {
            MaxLength: 2000
          },
          type: {
            name: 'String'
          }
        },
        notification_message: {
          required: false,
          serialized_name: 'notificationMessage',
          constraints: {
            MaxLength: 4000
          },
          type: {
            name: 'String'
          }
        },
        notification_image: {
          required: false,
          serialized_name: 'notificationImage',
          constraints: {
            MaxLength: 65535
          },
          type: {
            name: 'ByteArray'
          }
        },
        notification_options: {
          required: false,
          serialized_name: 'notificationOptions',
          type: {
            name: 'Composite',
            class_name: 'NotificationOptions'
          }
        },
        title: {
          required: false,
          serialized_name: 'title',
          constraints: {
            MaxLength: 128
          },
          type: {
            name: 'String'
          }
        },
        body: {
          required: false,
          serialized_name: 'body',
          constraints: {
            MaxLength: 65535
          },
          type: {
            name: 'String'
          }
        },
        action_button_text: {
          required: false,
          serialized_name: 'actionButtonText',
          constraints: {
            MaxLength: 64
          },
          type: {
            name: 'String'
          }
        },
        exit_button_text: {
          required: false,
          serialized_name: 'exitButtonText',
          constraints: {
            MaxLength: 64
          },
          type: {
            name: 'String'
          }
        },
        action_url: {
          required: false,
          serialized_name: 'actionUrl',
          constraints: {
            MaxLength: 2000
          },
          type: {
            name: 'String'
          }
        },
        payload: {
          required: false,
          serialized_name: 'payload',
          type: {
            name: 'Object'
          }
        }
      }
    }
  }
end