Tuya iOS Smart Life App SDK 5.15.0
ThingSmartFeedback Class Reference

ThingSmartFeedback provides methods for developers to implement feedback functionalities. More...

#import <ThingSmartFeedback.h>

Inheritance diagram for ThingSmartFeedback:

Instance Methods

(void) - getFeedbackTalkList:failure:
 
(void) - getFeedbackList:hdType:success:failure:
 
(void) - getFeedbackTypeList:failure:
 
(void) - addFeedback:hdId:hdType:contact:success:failure:
 
(void) - addFeedback:hdId:hdType:contact:uuid:region:success:failure:
 
(void) - cancelRequest
 Canceling an ongoing operation. More...
 
(void) - getFeedbackTalkList:failure:
 
(void) - getFeedbackList:hdType:success:failure:
 
(void) - getFeedbackTypeList:failure:
 
(void) - addFeedback:hdId:hdType:contact:success:failure:
 
(void) - addFeedback:hdId:hdType:contact:uuid:region:success:failure:
 
(void) - cancelRequest
 Canceling an ongoing operation. More...
 
(void) - getFeedbackTalkList:failure:
 
(void) - getFeedbackList:hdType:success:failure:
 
(void) - getFeedbackTypeList:failure:
 
(void) - addFeedback:hdId:hdType:contact:success:failure:
 
(void) - addFeedback:hdId:hdType:contact:uuid:region:success:failure:
 
(void) - cancelRequest
 Canceling an ongoing operation. More...
 
(void) - getFeedbackTalkList:failure:
 
(void) - getFeedbackList:hdType:success:failure:
 
(void) - getFeedbackTypeList:failure:
 
(void) - addFeedback:hdId:hdType:contact:success:failure:
 
(void) - addFeedback:hdId:hdType:contact:uuid:region:success:failure:
 
(void) - cancelRequest
 Canceling an ongoing operation. More...
 

Detailed Description

ThingSmartFeedback provides methods for developers to implement feedback functionalities.

When the user finds a problem and needs to submit feedback, he/she can add it. When adding feedback, he/she should first select the feedback type, then write the feedback content and submit it.

All functions related to feedback correspond to the ThingSmartFeedback class, which supports the following list of functions:

Definition at line 22 of file ThingSmartFeedback.h.

Method Documentation

◆ addFeedback:hdId:hdType:contact:success:failure: [1/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for App related issues and devices that do not need strong bindings.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:success:failure: [2/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for App related issues and devices that do not need strong bindings.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:success:failure: [3/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for App related issues and devices that do not need strong bindings.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:success:failure: [4/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for App related issues and devices that do not need strong bindings.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:uuid:region:success:failure: [1/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
uuid: (NSString *)  uuid
region: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for devices that need strong bindings, for example IP cameras.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
uuidThe UUID for the device.
regionThe user's region.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:uuid:region:success:failure: [2/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
uuid: (NSString *)  uuid
region: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for devices that need strong bindings, for example IP cameras.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
uuidThe UUID for the device.
regionThe user's region.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:uuid:region:success:failure: [3/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
uuid: (NSString *)  uuid
region: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for devices that need strong bindings, for example IP cameras.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
uuidThe UUID for the device.
regionThe user's region.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ addFeedback:hdId:hdType:contact:uuid:region:success:failure: [4/4]

- (void) addFeedback: (NSString *)  content
hdId: (NSString *)  hdId
hdType: (NSUInteger)  hdType
contact: (NSString *)  contact
uuid: (NSString *)  uuid
region: (NSString *)  region
success: (ThingSuccessHandler success
failure: (ThingFailureError failure 

Add feedback and submit the content of the feedback entered by the user.

The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Note
This is suggested for devices that need strong bindings, for example IP cameras.
Parameters
contentThe feedback content.
hdIdThe feedback ID.
hdTypeThe feedback type.
contactThe contact information.
uuidThe UUID for the device.
regionThe user's region.
successWhen successfully add the feedback, this block will be called.
failureThis block will be called if some error occurred.

◆ cancelRequest [1/4]

- (void) cancelRequest

Canceling an ongoing operation.

◆ cancelRequest [2/4]

- (void) cancelRequest

Canceling an ongoing operation.

◆ cancelRequest [3/4]

- (void) cancelRequest

Canceling an ongoing operation.

◆ cancelRequest [4/4]

- (void) cancelRequest

Canceling an ongoing operation.

◆ getFeedbackList:hdType:success:failure: [1/4]

- (void) getFeedbackList: (NSString *)  hdId
hdType: (NSUInteger)  hdType
success: (void(^)(NSArray< ThingSmartFeedbackModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of the corresponding feedback contents in the feedback session. The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Parameters
hdIdThe feedback ID.
hdTypeThe feedback type.
successWhen success, return feedback list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackList:hdType:success:failure: [2/4]

- (void) getFeedbackList: (NSString *)  hdId
hdType: (NSUInteger)  hdType
success: (void(^)(NSArray< ThingSmartFeedbackModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of the corresponding feedback contents in the feedback session. The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Parameters
hdIdThe feedback ID.
hdTypeThe feedback type.
successWhen success, return feedback list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackList:hdType:success:failure: [3/4]

- (void) getFeedbackList: (NSString *)  hdId
hdType: (NSUInteger)  hdType
success: (void(^)(NSArray< ThingSmartFeedbackModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of the corresponding feedback contents in the feedback session. The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Parameters
hdIdThe feedback ID.
hdTypeThe feedback type.
successWhen success, return feedback list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackList:hdType:success:failure: [4/4]

- (void) getFeedbackList: (NSString *)  hdId
hdType: (NSUInteger)  hdType
success: (void(^)(NSArray< ThingSmartFeedbackModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of the corresponding feedback contents in the feedback session. The hdId and hdType can be obtained from ThingSmartFeedbackTalkListModel.

Parameters
hdIdThe feedback ID.
hdTypeThe feedback type.
successWhen success, return feedback list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTalkList:failure: [1/4]

- (void) getFeedbackTalkList: (void(^)(NSArray< ThingSmartFeedbackTalkListModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of sessions that users have submitted feedback on.

Parameters
successWhen success, return feedback session list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTalkList:failure: [2/4]

- (void) getFeedbackTalkList: (void(^)(NSArray< ThingSmartFeedbackTalkListModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of sessions that users have submitted feedback on.

Parameters
successWhen success, return feedback session list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTalkList:failure: [3/4]

- (void) getFeedbackTalkList: (void(^)(NSArray< ThingSmartFeedbackTalkListModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of sessions that users have submitted feedback on.

Parameters
successWhen success, return feedback session list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTalkList:failure: [4/4]

- (void) getFeedbackTalkList: (void(^)(NSArray< ThingSmartFeedbackTalkListModel * > *list))  success
failure: (ThingFailureError failure 

Get a list of sessions that users have submitted feedback on.

Parameters
successWhen success, return feedback session list.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTypeList:failure: [1/4]

- (void) getFeedbackTypeList: (void(^)(NSArray< ThingSmartFeedbackTypeListModel * > *list))  success
failure: (ThingFailureError failure 

Get feedback type list. When adding feedback, select the type of feedback first.

Parameters
successWhen success, return ThingSmartFeedbackTypeListModel.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTypeList:failure: [2/4]

- (void) getFeedbackTypeList: (void(^)(NSArray< ThingSmartFeedbackTypeListModel * > *list))  success
failure: (ThingFailureError failure 

Get feedback type list. When adding feedback, select the type of feedback first.

Parameters
successWhen success, return ThingSmartFeedbackTypeListModel.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTypeList:failure: [3/4]

- (void) getFeedbackTypeList: (void(^)(NSArray< ThingSmartFeedbackTypeListModel * > *list))  success
failure: (ThingFailureError failure 

Get feedback type list. When adding feedback, select the type of feedback first.

Parameters
successWhen success, return ThingSmartFeedbackTypeListModel.
failureWhen error occurred, return ThingFailureError.

◆ getFeedbackTypeList:failure: [4/4]

- (void) getFeedbackTypeList: (void(^)(NSArray< ThingSmartFeedbackTypeListModel * > *list))  success
failure: (ThingFailureError failure 

Get feedback type list. When adding feedback, select the type of feedback first.

Parameters
successWhen success, return ThingSmartFeedbackTypeListModel.
failureWhen error occurred, return ThingFailureError.

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