Sha256: 50fa6f248e8a168aff879856d7b90f4b130c7884e3e1c19ea21b3638d358a43c

Contents?: true

Size: 1.84 KB

Versions: 2

Compression:

Stored size: 1.84 KB

Contents

# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::MobileEngagement::Mgmt::V2014_12_01
  module Models
    #
    # Used to target devices who received a data push.
    #
    class DatapushFeedbackCriterion < Criterion

      include MsRestAzure


      def initialize
        @type = "datapush-feedback"
      end

      attr_accessor :type

      # @return [Integer] The unique identifier of the data push.
      attr_accessor :content_id

      # @return [CampaignFeedbacks] Action that was performed on the data push
      # (action depends on the return value in the callbacks you declared in
      # the client code).
      # . Possible values include: 'pushed', 'replied', 'actioned', 'exited'
      attr_accessor :action


      #
      # Mapper for DatapushFeedbackCriterion class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'datapush-feedback',
          type: {
            name: 'Composite',
            class_name: 'DatapushFeedbackCriterion',
            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
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
azure_mgmt_mobile_engagement-0.15.1 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb
azure_mgmt_mobile_engagement-0.15.0 lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/datapush_feedback_criterion.rb