Skip to content

Commit

Permalink
Upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
hrxiang committed May 5, 2022
1 parent 5a239d2 commit 9fff10d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenIM-SDK/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

implementation 'io.openim:client-sdk:2.0.48@aar'
implementation 'com.alibaba:fastjson:1.2.24.android'
implementation 'com.alibaba:fastjson:1.1.72.android'
// implementation 'com.google.code.gson:gson:2.8.7'
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public interface OnSignalingListener {

void onInvitationCancelled(SignalingInfo s);


void onInvitationTimeout(SignalingInfo s);

void onInviteeAccepted(SignalingInfo s);
Expand All @@ -18,4 +17,6 @@ public interface OnSignalingListener {
void onInviteeRejectedByOtherDevice(SignalingInfo s);

void onReceiveNewInvitation(SignalingInfo s);

void onHangup(SignalingInfo s);
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ public _SignalingListener(OnSignalingListener listener) {
this.listener = listener;
}

@Override
public void onHangUp(String s) {
if (listener != null) {
SignalingInfo info = JsonUtil.toObj(s, SignalingInfo.class);
listener.onHangup(info);
}
}

@Override
public void onInvitationCancelled(String s) {
if (listener != null) {
Expand Down

0 comments on commit 9fff10d

Please sign in to comment.