Commit 14c36c15 by Victor Wang

Merge pull request #13 from wjp2013/develop

Develop
parents ac9fca4b 1e0a58be
......@@ -108,7 +108,7 @@ require 'rubygems'
require 'igetui'
@pusher = IGeTui.pusher(your_app_id, your_app_key, your_master_secret)
ret = @pusher.get_client_id_status(@cid_1)
ret = @pusher.get_client_id_status(your_client_id)
p ret
```
......
......@@ -16,11 +16,11 @@ module IGeTui
attr_accessor :app_id_list, :phone_type_list, :province_list, :tag_list
def initialize
super
@app_id_list = []
@phone_type_list = []
@province_list = []
@tag_list = []
super
end
end
end
......@@ -5,7 +5,7 @@ module IGeTui
def initialize
@transmission_type = 0
@transmission_content = ''
@push_info = nil
@push_info = GtReq::PushInfo.new
end
def get_transparent(pusher)
......@@ -21,17 +21,19 @@ module IGeTui
transparent
end
def get_action_chain; end
def get_push_type; end
def get_action_chain
raise NotImplementedError, 'Must be implemented by subtypes.'
end
def get_push_type
raise NotImplementedError, 'Must be implemented by subtypes.'
end
def get_push_info
unless @push_info
@push_info = GtReq::PushInfo.new
@push_info.actionKey = ''
@push_info.badge = ''
@push_info.message = ''
@push_info.sound = ''
end
@push_info.actionKey = ''
@push_info.badge = ''
@push_info.message = ''
@push_info.sound = ''
@push_info
end
......@@ -39,8 +41,6 @@ module IGeTui
# iOS Pusher need the top three fields of 'push_info' are required.
# the others can be blank string.
def set_push_info(action_loc_key, badge, message, sound, payload, loc_key, loc_args, launch_image)
@push_info = GtReq::PushInfo.new
@push_info.actionLocKey = action_loc_key
@push_info.badge = badge
@push_info.message = message
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment