Class: Xinge::Android
- Inherits:
-
Base
- Object
- Base
- Xinge::Android
show all
- Defined in:
- lib/xinge/android.rb
Constant Summary
Constants inherited
from Base
Base::DEFAULT_OPTIONS, Base::HOST, Base::HTTP_METHOD
Instance Method Summary
collapse
-
#initialize(accessId = nil, secretKey = nil, options = {}) ⇒ Android
constructor
A new instance of Android.
-
#pushToAllDevice(title, content, params = {}, custom_content = {}) ⇒ Object
-
#pushToMultiDevices(tokens, title, content, params = {}, custom_content = {}) ⇒ Object
-
#pushToSingleDevice(token, title, content, params = {}, custom_content = {}) ⇒ Object
Methods inherited from Base
#application_get_app_device_num, #push_all_device, #push_cancel_timing_task, #push_get_msg_status, #push_multi_device, #push_single_account, #push_single_device, #push_tags_device, #tags_batch_del, #tags_batch_set, #tags_query_app_tags, #tags_query_tag_token_num, #tags_query_token_tags
Constructor Details
#initialize(accessId = nil, secretKey = nil, options = {}) ⇒ Android
4
5
6
|
# File 'lib/xinge/android.rb', line 4
def initialize(accessId = nil, secretKey = nil, options = {})
super
end
|
Instance Method Details
#pushToAllDevice(title, content, params = {}, custom_content = {}) ⇒ Object
15
16
17
|
# File 'lib/xinge/android.rb', line 15
def pushToAllDevice(title, content, params={}, custom_content={})
self.push_all_device(1, build_simple_message(title, content, custom_content), params)
end
|
#pushToMultiDevices(tokens, title, content, params = {}, custom_content = {}) ⇒ Object
11
12
13
|
# File 'lib/xinge/android.rb', line 11
def pushToMultiDevices(tokens, title, content, params={}, custom_content={})
self.push_multi_device(tokens, 1, build_simple_message(title, content, custom_content), params)
end
|
#pushToSingleDevice(token, title, content, params = {}, custom_content = {}) ⇒ Object
7
8
9
|
# File 'lib/xinge/android.rb', line 7
def pushToSingleDevice(token, title, content, params={}, custom_content={})
self.push_single_device(token, 1, build_simple_message(title, content, custom_content), params)
end
|