class Azure::MobileEngagement::Mgmt::V2014_12_01::Models::GeoFencingCriterion

Used to target devices based on a specific region. A center point (defined by a latitude and longitude) and a radius form the boundary for the region. This criterion will be met when the user crosses the boundaries of the region.

Attributes

expiration[RW]

@return [Integer] Number of minutes before device location is considered to be expired.

lat[RW]

@return [Float] The latitude of the central point of the region.

lon[RW]

@return [Float] The longitude of the central point of the region.

radius[RW]

@return [Integer] The radius of the central point of the region, in meters.

type[RW]

Private Class Methods

mapper() click to toggle source

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

# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb, line 45
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'geo-fencing',
    type: {
      name: 'Composite',
      class_name: 'GeoFencingCriterion',
      model_properties: {
        type: {
          client_side_validation: true,
          required: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        lat: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lat',
          type: {
            name: 'Double'
          }
        },
        lon: {
          client_side_validation: true,
          required: false,
          serialized_name: 'lon',
          type: {
            name: 'Double'
          }
        },
        radius: {
          client_side_validation: true,
          required: false,
          serialized_name: 'radius',
          type: {
            name: 'Number'
          }
        },
        expiration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'expiration',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/2014-12-01/generated/azure_mgmt_mobile_engagement/models/geo_fencing_criterion.rb, line 20
def initialize
  @type = "geo-fencing"
end