Sha256: af5020af430ffd0b3183466fa5383f9e6dd897b9b4ceda7fe3d8e8b5c04dbb09

Contents?: true

Size: 915 Bytes

Versions: 1

Compression:

Stored size: 915 Bytes

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42_Ruby_API/App42Response'

#
#
# This Push Notification object is the value object which contains the properties of
# Push Notification.
#
#

module App42
  module Push
    class PushNotification < App42Response
      attr_accessor  :message, :userName, :deviceToken, :channelList ,:type
      @channelList = Array.new
      @message
      @userName
      @deviceToken
      @type
    end

    class Channel
      attr_accessor  :channelName, :description
      @channelName
      @description

      #
      # This is a constructor that takes no parameter
      #
      def initialize(pushNotification)
        pushNotification.channelList.push(self)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
App42_Ruby_API-0.8.4 lib/push/PushNotification.rb