Class: PushV3Client
- Inherits:
-
Object
show all
- Includes:
- CommonHelper
- Defined in:
- lib/mobpush/client/push/push_v3_client.rb
Class Attribute Summary collapse
Instance Method Summary
collapse
-
#cancelPushTask(workId) ⇒ Object
-
#getPushByBatchId(batchId) ⇒ Object
-
#getPushByWorkno(workno) ⇒ Object
-
#pushAll(workNo, title, content) ⇒ Object
-
#pushByAlias(workNo, title, content, *alia) ⇒ Object
-
#pushByAreas(workNo, title, content, pushAreas) ⇒ Object
-
#pushByRids(workNo, title, content, *rids) ⇒ Object
-
#pushByTags(workNo, title, content, *tags) ⇒ Object
-
#pushMulti(pushMulti) ⇒ Object
-
#pushTaskV3(push) ⇒ Object
-
#pushTaskV3ByBuilder(builder) ⇒ Object
-
#recallPushTask(workId) ⇒ Object
-
#replacePushTask(workId, content) ⇒ Object
#hash2os, #os2hash, #sanitze_hash
Class Attribute Details
.CANCEL_TASK_URI ⇒ Object
Returns the value of attribute CANCEL_TASK_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def CANCEL_TASK_URI
@CANCEL_TASK_URI
end
|
.GET_BY_WORKID_URI ⇒ Object
Returns the value of attribute GET_BY_WORKID_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def GET_BY_WORKID_URI
@GET_BY_WORKID_URI
end
|
.GET_BY_WORKNO_URI ⇒ Object
Returns the value of attribute GET_BY_WORKNO_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def GET_BY_WORKNO_URI
@GET_BY_WORKNO_URI
end
|
.PUSH_MULTI ⇒ Object
Returns the value of attribute PUSH_MULTI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def PUSH_MULTI
@PUSH_MULTI
end
|
.PUSH_URI ⇒ Object
Returns the value of attribute PUSH_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def PUSH_URI
@PUSH_URI
end
|
.RECALL_TASK_URI ⇒ Object
Returns the value of attribute RECALL_TASK_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def RECALL_TASK_URI
@RECALL_TASK_URI
end
|
.REPLACE_TASK_URI ⇒ Object
Returns the value of attribute REPLACE_TASK_URI.
17
18
19
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 17
def REPLACE_TASK_URI
@REPLACE_TASK_URI
end
|
Instance Method Details
#cancelPushTask(workId) ⇒ Object
#getPushByBatchId(batchId) ⇒ Object
#getPushByWorkno(workno) ⇒ Object
#pushAll(workNo, title, content) ⇒ Object
32
33
34
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 32
def pushAll(workNo, title, content)
pushTaskV3ByBuilder(PushWorkBuilder.new(workNo, title, content).targetAll())
end
|
#pushByAlias(workNo, title, content, *alia) ⇒ Object
36
37
38
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 36
def pushByAlias(workNo, title, content, *alia)
pushTaskV3ByBuilder(PushWorkBuilder.new(workNo, title, content).targetAlias(alia))
end
|
#pushByAreas(workNo, title, content, pushAreas) ⇒ Object
48
49
50
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 48
def pushByAreas(workNo, title, content, pushAreas)
pushTaskV3ByBuilder(PushWorkBuilder.new(workNo, title, content).targetAreas(pushAreas))
end
|
#pushByRids(workNo, title, content, *rids) ⇒ Object
44
45
46
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 44
def pushByRids(workNo, title, content, *rids)
pushTaskV3ByBuilder(PushWorkBuilder.new(workNo, title, content).targetRids(rids))
end
|
40
41
42
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 40
def pushByTags(workNo, title, content, *tags)
pushTaskV3ByBuilder(PushWorkBuilder.new(workNo, title, content).targetTags(tags))
end
|
#pushMulti(pushMulti) ⇒ Object
#pushTaskV3(push) ⇒ Object
#pushTaskV3ByBuilder(builder) ⇒ Object
28
29
30
|
# File 'lib/mobpush/client/push/push_v3_client.rb', line 28
def pushTaskV3ByBuilder(builder)
pushTaskV3(builder.build())
end
|
#recallPushTask(workId) ⇒ Object
#replacePushTask(workId, content) ⇒ Object