Class: Azure::MobileEngagement::Mgmt::V2014_12_01::Models::AnnouncementFeedbackCriterion
- Inherits:
-
Criterion
- Object
- Criterion
- Azure::MobileEngagement::Mgmt::V2014_12_01::Models::AnnouncementFeedbackCriterion
- Includes:
- MsRestAzure
- Defined in:
- lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb
Overview
Used to target devices who received an announcement.
Instance Attribute Summary collapse
-
#action ⇒ CampaignFeedbacks
announcement.
-
#content_id ⇒ Integer
The unique identifier of the announcement.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for AnnouncementFeedbackCriterion class as Ruby Hash.
Instance Method Summary collapse
-
#initialize ⇒ AnnouncementFeedbackCriterion
constructor
A new instance of AnnouncementFeedbackCriterion.
Constructor Details
#initialize ⇒ AnnouncementFeedbackCriterion
Returns a new instance of AnnouncementFeedbackCriterion.
16 17 18 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb', line 16 def initialize @type = "announcement-feedback" end |
Instance Attribute Details
#action ⇒ CampaignFeedbacks
announcement. Possible values include: ‘pushed’, ‘replied’, ‘actioned’, ‘exited’
28 29 30 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb', line 28 def action @action end |
#content_id ⇒ Integer
Returns The unique identifier of the announcement.
23 24 25 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb', line 23 def content_id @content_id end |
#type ⇒ Object
Returns the value of attribute type.
20 21 22 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb', line 20 def type @type end |
Class Method Details
.mapper ⇒ Object
Mapper for AnnouncementFeedbackCriterion class as Ruby Hash. This will be used for serialization/deserialization.
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/announcement_feedback_criterion.rb', line 35 def self.mapper() { required: false, serialized_name: 'announcement-feedback', type: { name: 'Composite', class_name: 'AnnouncementFeedbackCriterion', model_properties: { type: { required: true, serialized_name: 'type', type: { name: 'String' } }, content_id: { required: false, serialized_name: 'content-id', type: { name: 'Number' } }, action: { required: false, serialized_name: 'action', type: { name: 'String' } } } } } end |