Conforms to NSObject
Declared in TKFeedbackDataSource.h

Overview

The data source protocol used to provide feedback service and storage.

Properties

userEmail

Contains the user email.

@property (nonatomic, copy) NSString *userEmail

Declared In

TKFeedbackDataSource.h

userName

Contains the user name.

@property (nonatomic, copy) NSString *userName

Declared In

TKFeedbackDataSource.h

Instance Methods

addFeedback:completionHandler:

Adds async the feedback item to the data source provider.

- (void)addFeedback:(TKFeedbackItem *)item completionHandler:(void ( ^ ) ( NSError *error ))handler

Parameters

item

The feedback item

handler

The completion handler to call when the add operation is complete.

Declared In

TKFeedbackDataSource.h

addFeedbackItems:completionHandler:

Adds async the specified feedback items to the data source provider.

- (void)addFeedbackItems:(NSArray *)feedbackItems completionHandler:(void ( ^ ) ( NSError *))handler

Parameters

feedbackItems

The feedback item list

handler

The completion handler to call when the add operation is complete.

Declared In

TKFeedbackDataSource.h

addSubItemForKey:subItem:completionHandler:

Adds async the comment feedback item using a key of item to the data source provider.

- (void)addSubItemForKey:(NSString *)key subItem:(TKFeedbackItem *)item completionHandler:(void ( ^ ) ( NSError *error ))handler

Parameters

key

The parent feedback item key

item

The comment feedback item

handler

The completion handler to call when the add operation for comment is complete.

Declared In

TKFeedbackDataSource.h

deleteWithKey:completionHandler:

Deletes async the feedback item from the data source provider.

- (void)deleteWithKey:(NSString *)key completionHandler:(void ( ^ ) ( NSError *error ))handler

Parameters

key

The feedback item key

handler

The completion handler to call when the delete operation is complete.

Declared In

TKFeedbackDataSource.h

editWithKey:state:completionHandler:

Edits async the feedback item in the data source provider.

- (void)editWithKey:(NSString *)key state:(NSString *)state completionHandler:(void ( ^ ) ( NSError *error ))handler

Parameters

key

The feedback item key

state

The feedback item state

handler

The completion handler to call when the edit operation is complete.

Declared In

TKFeedbackDataSource.h

feedbackItems:

Returns async the feedback items from the data source provider.

- (void)feedbackItems:(void ( ^ ) ( NSArray *items , NSError *error ))handler

Parameters

handler

The completion handler to call when the get operation is complete.

Declared In

TKFeedbackDataSource.h

feedbackItemsByState:completionHandler:

Returns async the feedback items filtered by state.

- (void)feedbackItemsByState:(NSString *)state completionHandler:(void ( ^ ) ( NSArray *items , NSError *error ))handler

Parameters

state

The feedback item state used to filter data

handler

The completion handler to call when the get operation is complete.

Declared In

TKFeedbackDataSource.h

feedbackItemsByState:skip:completionHandler:

Returns async the feedback items filtered by state and skip number of items.

- (void)feedbackItemsByState:(NSString *)state skip:(NSInteger)skip completionHandler:(void ( ^ ) ( NSArray *, NSError *))handler

Parameters

state

The feedback item state used to filter data

skip

The number of skipped items

handler

The completion handler to call when the get operation is complete.

Declared In

TKFeedbackDataSource.h

imageForKey:completionHandler:

Returns screenshot image of the feedback item using key.

- (void)imageForKey:(NSString *)key completionHandler:(void ( ^ ) ( UIImage *image , NSError *error ))handler

Parameters

key

The feedback item key

handler

The completion handler to call when the image download is complete.

Declared In

TKFeedbackDataSource.h

subItemsForKey:completionHandler:

Returns async the comment feedback items using a key of item from the data source provider.

- (void)subItemsForKey:(NSString *)key completionHandler:(void ( ^ ) ( NSArray *items , NSError *error ))handler

Parameters

key

The parent feedback item key

handler

The completion handler to call when the get operation for comments is complete.

Declared In

TKFeedbackDataSource.h