cordova-plugin-ymchat 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cordova-plugin-ymchat",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Cordova plugin to integrate yellow.ai chatbot",
5
5
  "cordova": {
6
6
  "id": "cordova-plugin-ymchat",
package/plugin.xml CHANGED
@@ -1,5 +1,5 @@
1
1
  <?xml version='1.0' encoding='utf-8'?>
2
- <plugin id="cordova-plugin-ymchat" version="2.1.1"
2
+ <plugin id="cordova-plugin-ymchat" version="2.3.2"
3
3
  xmlns="http://apache.org/cordova/ns/plugins/1.0"
4
4
  xmlns:android="http://schemas.android.com/apk/res/android">
5
5
  <name>ymchat</name>
@@ -24,5 +24,5 @@ repositories {
24
24
  dependencies {
25
25
  implementation 'androidx.appcompat:appcompat:1.0.2'
26
26
  implementation 'androidx.annotation:annotation:1.0.2'
27
- implementation 'com.github.yellowmessenger:YMChatbot-Android:v2.2.+'
27
+ implementation 'com.github.yellowmessenger:YMChatbot-Android:v2.3.+'
28
28
  }
@@ -8,6 +8,8 @@ import com.yellow.ai.ymchat.utils.Utils;
8
8
  import com.yellowmessenger.ymchat.YMChat;
9
9
  import com.yellowmessenger.ymchat.YMConfig;
10
10
  import com.yellowmessenger.ymchat.models.YellowCallback;
11
+ import com.yellowmessenger.ymchat.models.YellowDataCallback;
12
+ import com.yellowmessenger.ymchat.models.YellowUnreadMessageResponse;
11
13
 
12
14
  import org.apache.cordova.CallbackContext;
13
15
  import org.apache.cordova.PluginResult;
@@ -147,7 +149,7 @@ public class YmChatService {
147
149
 
148
150
  public void getUnreadMessagesCount(CallbackContext callbackContext) {
149
151
  try{
150
- ymChat.getUnreadMessagesCount(ymChat.config, new YellowCallback() {
152
+ ymChat.getUnreadMessagesCount(ymChat.config, new YellowDataCallback() {
151
153
  @Override
152
154
  public <T> void success(T data) {
153
155
  YellowUnreadMessageResponse response = (YellowUnreadMessageResponse) data;