-
public interface IThingPushCreated by zsg on 17/8/16.
-
-
Method Summary
Modifier and Type Method Description abstract voidregisterDevice(String aliasId, String pushProvider, IResultCallback callback)register push for devices abstract voidonDestroy()unregister push for devices abstract voidregisterMQPushListener(IThingGetBeanCallback<MQCompensationBean> callback)register mqtt push listener abstract voidsetPushStatus(boolean isOpen, IThingDataCallback<Boolean> callback)set message push master switch abstract voidgetPushStatus(IThingResultCallback<PushStatusBean> callback)get message push switch abstract voidgetPushStatusByType(PushType type, IThingDataCallback<Boolean> callback)get push switch status according to message type abstract voidsetPushStatusByType(PushType type, boolean isOpen, IThingDataCallback<Boolean> callback)set push switch status according to message type abstract voidgetNonRepeatRemindByType(PushType type, IThingDataCallback<AlarmRemindBean> callback)get not repeat reminders abstract voidsetNonRepeatRemindByType(PushType type, int noRepeatRemindDuration, IThingDataCallback<Boolean> callback)Do not repeat reminders abstract booleangetMarketingStatusFromCache()Gets the state of the marketing switch from the cache abstract voidgetMarketingStatus(IThingDataCallback<Boolean> callback)Get the status of the marketing switch abstract voidregisterPushAlarmListener(IThingGetBeanCallback<PushAlarmBean> callback)Registration alarm push pop up window abstract voidregisterThingPushListener(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
-
-
-
-