Tuya iOS Smart Life App SDK 5.15.0
ThingSmartMessageSetting Class Reference

ThingSmartMessageSetting provides methods to manage the Do Not Disturb (DND) mode for devices. More...

#import <ThingSmartMessageSetting.h>

Inheritance diagram for ThingSmartMessageSetting:

Instance Methods

(void) - setDeviceDNDSettingStatus:success:failure:
 
(void) - getDeviceDNDSettingstatusSuccess:failure:
 
(void) - getDNDListSuccess:failure:
 
(void) - getDNDDeviceListSuccess:failure:
 
(void) - addDNDWithDNDRequestModel:success:failure:
 
(void) - modifyDNDWithTimerID:DNDRequestModel:success:failure:
 
(void) - removeDNDWithTimerID:success:failure:
 
(void) - getPrivacyAuthorizationStatusSuccess:failure:
 
(void) - updatePrivacyAuthorizationStatusWithModel:Success:failure:
 
(void) - getAllDNDListWithSuccess:failure:
 
(void) - addOnceDNDWithRequestModel:success:failure:
 
(void) - modifyOnceDNDWithTimerID:requestModel:success:failure:
 
(void) - setDeviceDNDSettingStatus:success:failure:
 
(void) - getDeviceDNDSettingstatusSuccess:failure:
 
(void) - getDNDListSuccess:failure:
 
(void) - getDNDDeviceListSuccess:failure:
 
(void) - addDNDWithDNDRequestModel:success:failure:
 
(void) - modifyDNDWithTimerID:DNDRequestModel:success:failure:
 
(void) - removeDNDWithTimerID:success:failure:
 
(void) - getPrivacyAuthorizationStatusSuccess:failure:
 
(void) - updatePrivacyAuthorizationStatusWithModel:Success:failure:
 
(void) - getAllDNDListWithSuccess:failure:
 
(void) - addOnceDNDWithRequestModel:success:failure:
 
(void) - modifyOnceDNDWithTimerID:requestModel:success:failure:
 
(void) - setDeviceDNDSettingStatus:success:failure:
 
(void) - getDeviceDNDSettingstatusSuccess:failure:
 
(void) - getDNDListSuccess:failure:
 
(void) - getDNDDeviceListSuccess:failure:
 
(void) - addDNDWithDNDRequestModel:success:failure:
 
(void) - modifyDNDWithTimerID:DNDRequestModel:success:failure:
 
(void) - removeDNDWithTimerID:success:failure:
 
(void) - getPrivacyAuthorizationStatusSuccess:failure:
 
(void) - updatePrivacyAuthorizationStatusWithModel:Success:failure:
 
(void) - getAllDNDListWithSuccess:failure:
 
(void) - addOnceDNDWithRequestModel:success:failure:
 
(void) - modifyOnceDNDWithTimerID:requestModel:success:failure:
 
(void) - setDeviceDNDSettingStatus:success:failure:
 
(void) - getDeviceDNDSettingstatusSuccess:failure:
 
(void) - getDNDListSuccess:failure:
 
(void) - getDNDDeviceListSuccess:failure:
 
(void) - addDNDWithDNDRequestModel:success:failure:
 
(void) - modifyDNDWithTimerID:DNDRequestModel:success:failure:
 
(void) - removeDNDWithTimerID:success:failure:
 
(void) - getPrivacyAuthorizationStatusSuccess:failure:
 
(void) - updatePrivacyAuthorizationStatusWithModel:Success:failure:
 
(void) - getAllDNDListWithSuccess:failure:
 
(void) - addOnceDNDWithRequestModel:success:failure:
 
(void) - modifyOnceDNDWithTimerID:requestModel:success:failure:
 

Detailed Description

ThingSmartMessageSetting provides methods to manage the Do Not Disturb (DND) mode for devices.

Definition at line 19 of file ThingSmartMessageSetting.h.

Method Documentation

◆ addDNDWithDNDRequestModel:success:failure: [1/4]

- (void) addDNDWithDNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addDNDWithDNDRequestModel:success:failure: [2/4]

- (void) addDNDWithDNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addDNDWithDNDRequestModel:success:failure: [3/4]

- (void) addDNDWithDNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addDNDWithDNDRequestModel:success:failure: [4/4]

- (void) addDNDWithDNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addOnceDNDWithRequestModel:success:failure: [1/4]

- (void) addOnceDNDWithRequestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds one-time DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addOnceDNDWithRequestModel:success:failure: [2/4]

- (void) addOnceDNDWithRequestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds one-time DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addOnceDNDWithRequestModel:success:failure: [3/4]

- (void) addOnceDNDWithRequestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds one-time DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ addOnceDNDWithRequestModel:success:failure: [4/4]

- (void) addOnceDNDWithRequestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Adds one-time DND time for devices.

Parameters
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getAllDNDListWithSuccess:failure: [1/4]

- (void) getAllDNDListWithSuccess: (void(^)(ThingSmartMessageDNDListEntity *_Nullable result))  success
failure: (ThingFailureError failure 

Returns a list of DND settings.Includes weekly periodic do-not-disturb and one-time do-not-disturb.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getAllDNDListWithSuccess:failure: [2/4]

- (void) getAllDNDListWithSuccess: (void(^)(ThingSmartMessageDNDListEntity *_Nullable result))  success
failure: (ThingFailureError failure 

Returns a list of DND settings.Includes weekly periodic do-not-disturb and one-time do-not-disturb.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getAllDNDListWithSuccess:failure: [3/4]

- (void) getAllDNDListWithSuccess: (void(^)(ThingSmartMessageDNDListEntity *_Nullable result))  success
failure: (ThingFailureError failure 

Returns a list of DND settings.Includes weekly periodic do-not-disturb and one-time do-not-disturb.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getAllDNDListWithSuccess:failure: [4/4]

- (void) getAllDNDListWithSuccess: (void(^)(ThingSmartMessageDNDListEntity *_Nullable result))  success
failure: (ThingFailureError failure 

Returns a list of DND settings.Includes weekly periodic do-not-disturb and one-time do-not-disturb.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDeviceDNDSettingstatusSuccess:failure: [1/4]

- (void) getDeviceDNDSettingstatusSuccess: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Returns the DND status for devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDeviceDNDSettingstatusSuccess:failure: [2/4]

- (void) getDeviceDNDSettingstatusSuccess: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Returns the DND status for devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDeviceDNDSettingstatusSuccess:failure: [3/4]

- (void) getDeviceDNDSettingstatusSuccess: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Returns the DND status for devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDeviceDNDSettingstatusSuccess:failure: [4/4]

- (void) getDeviceDNDSettingstatusSuccess: (ThingSuccessBOOL success
failure: (ThingFailureError failure 

Returns the DND status for devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDDeviceListSuccess:failure: [1/4]

- (void) getDNDDeviceListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDDeviceListSuccess:failure: [2/4]

- (void) getDNDDeviceListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDDeviceListSuccess:failure: [3/4]

- (void) getDNDDeviceListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDDeviceListSuccess:failure: [4/4]

- (void) getDNDDeviceListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of devices.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDListSuccess:failure: [1/4]

- (void) getDNDListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of DND settings.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDListSuccess:failure: [2/4]

- (void) getDNDListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of DND settings.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDListSuccess:failure: [3/4]

- (void) getDNDListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of DND settings.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getDNDListSuccess:failure: [4/4]

- (void) getDNDListSuccess: (ThingSuccessList success
failure: (ThingFailureError failure 

Returns a list of DND settings.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getPrivacyAuthorizationStatusSuccess:failure: [1/4]

- (void) getPrivacyAuthorizationStatusSuccess: (void(^)(ThingSmartMessageAuthorizationModel *model))  success
failure: (ThingFailureError failure 

Get privacy authorization status.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getPrivacyAuthorizationStatusSuccess:failure: [2/4]

- (void) getPrivacyAuthorizationStatusSuccess: (void(^)(ThingSmartMessageAuthorizationModel *model))  success
failure: (ThingFailureError failure 

Get privacy authorization status.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getPrivacyAuthorizationStatusSuccess:failure: [3/4]

- (void) getPrivacyAuthorizationStatusSuccess: (void(^)(ThingSmartMessageAuthorizationModel *model))  success
failure: (ThingFailureError failure 

Get privacy authorization status.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ getPrivacyAuthorizationStatusSuccess:failure: [4/4]

- (void) getPrivacyAuthorizationStatusSuccess: (void(^)(ThingSmartMessageAuthorizationModel *model))  success
failure: (ThingFailureError failure 

Get privacy authorization status.

Parameters
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyDNDWithTimerID:DNDRequestModel:success:failure: [1/4]

- (void) modifyDNDWithTimerID: (long)  timerID
DNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyDNDWithTimerID:DNDRequestModel:success:failure: [2/4]

- (void) modifyDNDWithTimerID: (long)  timerID
DNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyDNDWithTimerID:DNDRequestModel:success:failure: [3/4]

- (void) modifyDNDWithTimerID: (long)  timerID
DNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyDNDWithTimerID:DNDRequestModel:success:failure: [4/4]

- (void) modifyDNDWithTimerID: (long)  timerID
DNDRequestModel: (ThingSmartMessageSettingDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyOnceDNDWithTimerID:requestModel:success:failure: [1/4]

- (void) modifyOnceDNDWithTimerID: (long)  timerID
requestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies one-time DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyOnceDNDWithTimerID:requestModel:success:failure: [2/4]

- (void) modifyOnceDNDWithTimerID: (long)  timerID
requestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies one-time DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyOnceDNDWithTimerID:requestModel:success:failure: [3/4]

- (void) modifyOnceDNDWithTimerID: (long)  timerID
requestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies one-time DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ modifyOnceDNDWithTimerID:requestModel:success:failure: [4/4]

- (void) modifyOnceDNDWithTimerID: (long)  timerID
requestModel: (ThingSmartMessageOnceDNDRequestModel *)  requestModel
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Modifies one-time DND time for devices.

Parameters
timerIDThe ID of the timer.
requestModelThe model of a DND request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ removeDNDWithTimerID:success:failure: [1/4]

- (void) removeDNDWithTimerID: (long)  timerID
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes DND time.

Parameters
timerIDThe ID of the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ removeDNDWithTimerID:success:failure: [2/4]

- (void) removeDNDWithTimerID: (long)  timerID
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes DND time.

Parameters
timerIDThe ID of the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ removeDNDWithTimerID:success:failure: [3/4]

- (void) removeDNDWithTimerID: (long)  timerID
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes DND time.

Parameters
timerIDThe ID of the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ removeDNDWithTimerID:success:failure: [4/4]

- (void) removeDNDWithTimerID: (long)  timerID
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Removes DND time.

Parameters
timerIDThe ID of the timer.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ setDeviceDNDSettingStatus:success:failure: [1/4]

- (void) setDeviceDNDSettingStatus: (BOOL)  flags
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets the DND status for devices.

Parameters
flagsThe switching status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ setDeviceDNDSettingStatus:success:failure: [2/4]

- (void) setDeviceDNDSettingStatus: (BOOL)  flags
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets the DND status for devices.

Parameters
flagsThe switching status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ setDeviceDNDSettingStatus:success:failure: [3/4]

- (void) setDeviceDNDSettingStatus: (BOOL)  flags
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets the DND status for devices.

Parameters
flagsThe switching status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ setDeviceDNDSettingStatus:success:failure: [4/4]

- (void) setDeviceDNDSettingStatus: (BOOL)  flags
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Sets the DND status for devices.

Parameters
flagsThe switching status.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ updatePrivacyAuthorizationStatusWithModel:Success:failure: [1/4]

- (void) updatePrivacyAuthorizationStatusWithModel: (ThingSmartMessageAuthorizationRequestModel *)  model
Success: (ThingSuccessID success
failure: (ThingFailureError failure 

Update status of privacy authorization.

Parameters
modelThe model of a authorization request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ updatePrivacyAuthorizationStatusWithModel:Success:failure: [2/4]

- (void) updatePrivacyAuthorizationStatusWithModel: (ThingSmartMessageAuthorizationRequestModel *)  model
Success: (ThingSuccessID success
failure: (ThingFailureError failure 

Update status of privacy authorization.

Parameters
modelThe model of a authorization request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ updatePrivacyAuthorizationStatusWithModel:Success:failure: [3/4]

- (void) updatePrivacyAuthorizationStatusWithModel: (ThingSmartMessageAuthorizationRequestModel *)  model
Success: (ThingSuccessID success
failure: (ThingFailureError failure 

Update status of privacy authorization.

Parameters
modelThe model of a authorization request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

◆ updatePrivacyAuthorizationStatusWithModel:Success:failure: [4/4]

- (void) updatePrivacyAuthorizationStatusWithModel: (ThingSmartMessageAuthorizationRequestModel *)  model
Success: (ThingSuccessID success
failure: (ThingFailureError failure 

Update status of privacy authorization.

Parameters
modelThe model of a authorization request.
successCalled when the task is finished.
failureCalled when the task is interrupted by an error. ThingFailureError is returned.

The documentation for this class was generated from the following files: