-
public interface IThingPush
Created by zsg on 17/8/16.
-
-
Method Summary
Modifier and Type Method Description abstract void
registerDevice(String aliasId, String pushProvider, IResultCallback callback)
register push for devices abstract void
onDestroy()
unregister push for devices abstract void
registerMQPushListener(IThingGetBeanCallback<MQCompensationBean> callback)
register mqtt push listener abstract void
setPushStatus(boolean isOpen, IThingDataCallback<Boolean> callback)
set message push master switch abstract void
getPushStatus(IThingResultCallback<PushStatusBean> callback)
get message push switch abstract void
getPushStatusByType(PushType type, IThingDataCallback<Boolean> callback)
get push switch status according to message type abstract void
setPushStatusByType(PushType type, boolean isOpen, IThingDataCallback<Boolean> callback)
set push switch status according to message type abstract void
getNonRepeatRemindByType(PushType type, IThingDataCallback<AlarmRemindBean> callback)
get not repeat reminders abstract void
setNonRepeatRemindByType(PushType type, int noRepeatRemindDuration, IThingDataCallback<Boolean> callback)
Do not repeat reminders abstract boolean
getMarketingStatusFromCache()
Gets the state of the marketing switch from the cache abstract void
getMarketingStatus(IThingDataCallback<Boolean> callback)
Get the status of the marketing switch abstract void
registerPushAlarmListener(IThingGetBeanCallback<PushAlarmBean> callback)
Registration alarm push pop up window abstract void
registerThingPushListener(String topic, IThingDataCallback<ThingPushBean> callback)
Registration Thing push returned results -
-
Method Detail
-
registerDevice
abstract void registerDevice(String aliasId, String pushProvider, IResultCallback callback)
register push for devices
- Parameters:
aliasId
- alidas idpushProvider
- push provider {@see com.thingclips.smart.push.api.callback
- Callback for ack message IResultCallback
-
onDestroy
abstract void onDestroy()
unregister push for devices
-
registerMQPushListener
abstract void registerMQPushListener(IThingGetBeanCallback<MQCompensationBean> callback)
register mqtt push listener
- Parameters:
callback
- Callback for ack message IThingGetBeanCallback
-
setPushStatus
abstract void setPushStatus(boolean isOpen, IThingDataCallback<Boolean> callback)
set message push master switch
- Parameters:
isOpen
- is open pushcallback
- Callback for ack message IThingDataCallback
-
getPushStatus
abstract void getPushStatus(IThingResultCallback<PushStatusBean> callback)
get message push switch
- Parameters:
callback
- Callback for ack message IThingDataCallback
-
getPushStatusByType
abstract void getPushStatusByType(PushType type, IThingDataCallback<Boolean> callback)
get push switch status according to message type
- Parameters:
type
- message typecallback
- Callback for ack message IThingDataCallback
-
setPushStatusByType
abstract void setPushStatusByType(PushType type, boolean isOpen, IThingDataCallback<Boolean> callback)
set push switch status according to message type
- Parameters:
type
- message typeisOpen
- is open pushcallback
- Callback for ack message IThingDataCallback
-
getNonRepeatRemindByType
abstract void getNonRepeatRemindByType(PushType type, IThingDataCallback<AlarmRemindBean> callback)
get not repeat reminders
- Parameters:
type
- message typecallback
- Callback for ack message IThingDataCallback
-
setNonRepeatRemindByType
abstract void setNonRepeatRemindByType(PushType type, int noRepeatRemindDuration, IThingDataCallback<Boolean> callback)
Do not repeat reminders
- Parameters:
type
- message typenoRepeatRemindDuration
- not repeat durationcallback
- Callback for ack message IThingDataCallback
-
getMarketingStatusFromCache
abstract boolean getMarketingStatusFromCache()
Gets the state of the marketing switch from the cache
-
getMarketingStatus
abstract void getMarketingStatus(IThingDataCallback<Boolean> callback)
Get the status of the marketing switch
- Parameters:
callback
- Callback for ack message IThingDataCallback
-
registerPushAlarmListener
abstract void registerPushAlarmListener(IThingGetBeanCallback<PushAlarmBean> callback)
Registration alarm push pop up window
- Parameters:
callback
- Callback for ack message IThingGetBeanCallback
-
registerThingPushListener
abstract void registerThingPushListener(String topic, IThingDataCallback<ThingPushBean> callback)
Registration Thing push returned results
- Parameters:
topic
- topiccallback
- Callback for ack message IThingDataCallback
-
-
-
-