Sha256: 41bc05510ee90c582ab1c8f9bae6cebfb94d8bdb0265a051661dced2d011e08c

Contents?: true

Size: 903 Bytes

Versions: 1

Compression:

Stored size: 903 Bytes

Contents

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

require 'App42Response.rb'

#
#
# 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_SDK-0.8.3 lib/push/PushNotification.rb