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

module MobileCenterApi
  module Models
    #
    # Model object.
    #
    #
    class Event
      # @return [String]
      attr_accessor :id

      # @return [String]
      attr_accessor :name

      # @return [Integer]
      attr_accessor :device_count

      # @return [Integer] the device count of previous time range of the event
      attr_accessor :previous_device_count

      # @return [Integer]
      attr_accessor :count

      # @return [Integer] the event count of previous time range of the event
      attr_accessor :previous_count

      # @return [Integer]
      attr_accessor :count_per_device

      # @return [Integer]
      attr_accessor :count_per_session


      #
      # Mapper for Event class as Ruby Hash.
      # This will be used for serialization/deserialization.
      #
      def self.mapper()
        {
          required: false,
          serialized_name: 'Event',
          type: {
            name: 'Composite',
            class_name: 'Event',
            model_properties: {
              id: {
                required: false,
                serialized_name: 'id',
                type: {
                  name: 'String'
                }
              },
              name: {
                required: false,
                serialized_name: 'name',
                type: {
                  name: 'String'
                }
              },
              device_count: {
                required: false,
                serialized_name: 'deviceCount',
                type: {
                  name: 'Number'
                }
              },
              previous_device_count: {
                required: false,
                serialized_name: 'previous_device_count',
                type: {
                  name: 'Number'
                }
              },
              count: {
                required: false,
                serialized_name: 'count',
                type: {
                  name: 'Number'
                }
              },
              previous_count: {
                required: false,
                serialized_name: 'previous_count',
                type: {
                  name: 'Number'
                }
              },
              count_per_device: {
                required: false,
                serialized_name: 'count_per_device',
                type: {
                  name: 'Number'
                }
              },
              count_per_session: {
                required: false,
                serialized_name: 'count_per_session',
                type: {
                  name: 'Number'
                }
              }
            }
          }
        }
      end
    end
  end
end
