TapTalk.io Documentation
  • Introduction
  • OneTalk Omnichannel Documentation
    • Getting Started with OneTalk
      • Team Members
      • Add Topic
      • Assign Agent to Topic
      • Paid Proactive Chat
    • Channel Integration
      • Telegram Integration
      • WhatsApp SME Integration
      • Instagram DM Integration
      • Facebook Messenger Integration
      • Live Chat Integration (iOS, Android, Web)
        • OneTalk Live Chat for Android
          • Get Started
          • Event Listener
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for iOS
          • Get Started
          • Background Process in TapTalk.io Omnichannel iOS
          • Event Delegate
          • Authentication
          • Case & Topic
          • Navigate Live Chat UI
          • Customize UI Appearance
        • OneTalk Live Chat for Web
          • Get Started
          • Callback
          • Method
        • OneTalk Live Chat for React Native
          • Get Started - Android
          • Authentication - Android
          • Get Started - iOS
          • Authentication - iOS
        • OneTalk Live Chat for Flutter
          • Get Started - Android
          • Get Started - iOS
      • Google Business Messages Integration
      • Google Business Profile Integration
      • Tokopedia Integration
    • Integration API
      • Inbox API
      • User/Contact API
    • Live Chat Widget Callback Function
    • Social Channel Button
    • Custom Chatbot Integration
      • Get Started
      • Edit or Delete Chatbot
      • Development
    • QnA via API
    • Webhook
  • PowerTalk Chat SDK Documentation
    • Getting Started with PowerTalk
    • PowerTalk Android
      • Get Started
      • Enable Chat Features
      • Authentication
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Connection
      • Event Listener
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk iOS
      • Get Started
      • TapUI and TapCore
      • Background Process in TapTalk.io
      • Implement Application Delegate
      • Authentication
      • Connection
      • Event Delegate
      • Push Notification
      • General
      • User
      • Room List
        • Room List - TapUI
        • Room List - TapCore
      • Chat Room and Messages
        • Chat Room and Messages - TapUI
        • Chat Room and Messages - TapCore
      • Contact
      • Message Type
      • Customize UI Appearance
      • Customize Chat Features
      • Customize Chat Message Bubble
      • Customize Navigation Bar
      • Deep Linking
      • Error Codes
    • PowerTalk React Native
      • Get Started - Android
      • Get Started - iOS
    • PowerTalk Flutter
      • Get Started - Android
      • Get Started - iOS
    • Javascript SDK
      • Get Started
      • Authentication
      • Connection
      • General
      • Event Listener
      • User
      • Room List
      • Chat Room
      • Messages
      • Contact
      • Message Type
    • Server API
      • Get Started
      • Base URL
      • Authentication
      • User
      • Contact
      • Message
      • Room
    • Webhook
      • Get Started
      • Webhook Payload
  • MeetTalk SDK Documentation
    • Getting Started with MeetTalk
    • MeetTalk Android
      • Get Started
      • Event Listener
    • MeetTalk iOS
      • Get Started
      • Implement Application Delegate
      • Event Delegate
  • SendTalk API Documentation
    • Introduction
    • Whatsapp Verification
Powered by GitBook
On this page
  • Get Available Topics
  • Get Active User's Case List
  • Create a New Case

Was this helpful?

  1. OneTalk Omnichannel Documentation
  2. Channel Integration
  3. Live Chat Integration (iOS, Android, Web)
  4. OneTalk Live Chat for Android

Case & Topic

Get Available Topics

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

YourActivity.java
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) {
        
    }
});
YourActivity.kt
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

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

YourActivity.java
import io.taptalk.taptalklive.TapTalkLive;
import io.taptalk.taptalklive.Listener.TTLGetCaseListListener;
import io.taptalk.taptalklive.API.Model.TTLCaseModel;

...

TapTalkLive.getUserCaseList(new TTLGetCaseListListener() {
    @Override
    public void onSuccess(List<TTLCaseModel> cases) {
        // Successfully fetched user cases
    }

    @Override
    public void onError(String errorCode, String errorMessage) {
        
    }
});
YourActivity.kt
import io.taptalk.taptalklive.TapTalkLive
import io.taptalk.taptalklive.Listener.TTLGetCaseListListener
import io.taptalk.taptalklive.API.Model.TTLCaseModel

...

TapTalkLive.getUserCaseList(object : TTLGetCaseListListener() {
    override fun onSuccess(cases: MutableList<TTLCaseModel>?) {
        // Successfully fetched user cases
    }
    override fun onError(errorCode: String?, errorMessage: String?) {

    }
})

Create a New Case

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

YourActivity.java
import io.taptalk.taptalklive.TapTalkLive;
import io.taptalk.taptalklive.Listener.TTLCreateCaseListener;
import io.taptalk.taptalklive.API.Model.TTLCaseModel;

...

TapTalkLive.createNewCase(TOPIC_ID, FIRST_MESSAGE, new TTLCreateCaseListener() {
    @Override
    public void onSuccess(TTLCaseModel caseModel) {
        // Successfully created a new case
    }

    @Override
    public void onError(String errorCode, String errorMessage) {
        
    }
});
YourActivity.kt
import io.taptalk.taptalklive.TapTalkLive
import io.taptalk.taptalklive.Listener.TTLCreateCaseListener
import io.taptalk.taptalklive.API.Model.TTLCaseModel

...

TapTalkLive.createNewCase(TOPIC_ID, FIRST_MESSAGE, object : TTLCreateCaseListener() {
    override fun onSuccess(caseModel: TTLCaseModel?) {
        // Successfully created a new case
    }
    override fun onError(errorCode: String?, errorMessage: String?) {

    }
})

PreviousAuthenticationNextNavigate Live Chat UI

Last updated 1 month ago

Was this helpful?

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

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

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

getTopicList
authentication
authentication