use of im.actor.runtime.actors.messages.Void in project actor-platform by actorapp.
the class JsFacade method kickMember.
@UsedByApp
public JsPromise kickMember(final int gid, final int uid) {
return JsPromise.create(new JsPromiseExecutor() {
@Override
public void execute() {
// noinspection ConstantConditions
messenger.kickMember(gid, uid).start(new CommandCallback<Void>() {
@Override
public void onResult(Void res) {
Log.d(TAG, "kickMember:result");
resolve();
}
@Override
public void onError(Exception e) {
Log.d(TAG, "kickMember:error");
reject(e.getMessage());
}
});
}
});
}
use of im.actor.runtime.actors.messages.Void in project actor-platform by actorapp.
the class JsFacade method inviteMember.
@UsedByApp
public JsPromise inviteMember(final int gid, final int uid) {
return JsPromise.create(new JsPromiseExecutor() {
@Override
public void execute() {
// noinspection ConstantConditions
messenger.inviteMember(gid, uid).start(new CommandCallback<Void>() {
@Override
public void onResult(Void res) {
Log.d(TAG, "inviteMember:result");
resolve();
}
@Override
public void onError(Exception e) {
Log.d(TAG, "inviteMember:error");
reject(e.getMessage());
}
});
}
});
}
Aggregations