Case & Topic

Get Available Topics

You can get the list of available topics by calling getTopicList.

YourViewController
[[TapTalkLive sharedInstance] getTopicListWithSuccess:^(NSArray<TTLTopicModel *> *topicListArray) {
    // Successfully fetched topics
}
failure:^(NSError *error) {
    
}];

Get Active User's Case List

To use this method, you need to first finish authentication process.

Once authenticated, you can obtain the active user's case list by calling getUserCaseList.

YourViewController
[[TapTalkLive sharedInstance] getUserCaseListListWithSuccess:^(NSArray<TTLTopicModel *> *topicListArray) {
    // Successfully fetched user cases
}
failure:^(NSError *error) {
    
}];

Create a New Case

To use this method, you need to first finish authentication process.

Once authenticated, you can create a new case for the user by calling createNewCase, providing the topic ID and first message.

YourViewController
[[TapTalkLive sharedInstance] createNewCaseWithTopicID:TOPIC_ID
                                          firstMessage:FIRST_MESSAGE
success:^(TTLCaseModel *caseModel) {
    
}
failure:^(NSError *error) {
    
}];

Parameters TOPIC_ID: (String) ID of the selected topic, can be obtained from getTopicList FIRST_MESSAGE: (String) message to be sent by the user to start a case

Last updated