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.
YourActivity.java
importio.taptalk.taptalklive.TapTalkLive;importio.taptalk.taptalklive.Listener.TTLCreateCaseListener;...TapTalkLive.createNewCase(TOPIC_ID, FIRST_MESSAGE,newTTLCreateCaseListener() { @OverridepublicvoidonSuccess(TTLCaseModel caseModel) {// Successfully created a new case } @OverridepublicvoidonError(String errorCode,String errorMessage) { }});
YourActivity.kt
import io.taptalk.taptalklive.TapTalkLiveimport io.taptalk.taptalklive.Listener.TTLCreateCaseListener...TapTalkLive.createNewCase(TOPIC_ID, FIRST_MESSAGE, object : TTLCreateCaseListener() {overridefunonSuccess(caseModel: TTLCaseModel?) {// Successfully created a new case }overridefunonError(errorCode: String?, errorMessage: String?) { }})
ParametersTOPIC_ID: (int) ID of the selected topic, can be obtained from getTopicListFIRST_MESSAGE: (String) message to be sent by the user to start a case