Case & Topic
Get Available Topics
You can get the list of available topics by calling getTopicList.
import io.taptalk.taptalklive.TapTalkLive;
import io.taptalk.taptalklive.Listener.TTLGetTopicListListener;
import io.taptalk.taptalklive.API.Model.TTLTopicModel;
...
TapTalkLive.getTopicList(new TTLGetTopicListListener() {
@Override
public void onSuccess(List<TTLTopicModel> topics) {
// Successfully fetched topics
}
@Override
public void onError(String errorCode, String errorMessage) {
}
});import io.taptalk.taptalklive.TapTalkLive
import io.taptalk.taptalklive.Listener.TTLGetTopicListListener
import io.taptalk.taptalklive.API.Model.TTLTopicModel
...
TapTalkLive.getTopicList(object : TTLGetTopicListListener() {
override fun onSuccess(topics: MutableList<TTLTopicModel>?) {
// Successfully fetched topics
}
override fun onError(errorCode: String?, errorMessage: String?) {
}
})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.
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.
Last updated
Was this helpful?