Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
igetui-ruby
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ikcrm_common
igetui-ruby
Commits
14c36c15
Commit
14c36c15
authored
Sep 01, 2014
by
Victor Wang
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #13 from wjp2013/develop
Develop
parents
ac9fca4b
1e0a58be
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
README.md
+1
-1
lib/igetui/message.rb
+1
-1
lib/igetui/template/base_template.rb
+12
-12
No files found.
README.md
View file @
14c36c15
...
...
@@ -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
```
...
...
lib/igetui/message.rb
View file @
14c36c15
...
...
@@ -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
lib/igetui/template/base_template.rb
View file @
14c36c15
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment