This commit is contained in:
czp3009 2018-06-02 00:56:44 +08:00
parent 7412f6a862
commit edeeb4b295
2 changed files with 13 additions and 2 deletions

View File

@ -1,5 +1,5 @@
group = 'com.hiczp'
version = '0.0.14'
version = '0.0.15'
description = 'Bilibili android client API library written in Java'
apply plugin: 'idea'

View File

@ -24,6 +24,7 @@ import retrofit2.Call;
import javax.annotation.Nonnull;
import java.io.IOException;
import java.util.List;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.ExecutorService;
@ -180,11 +181,21 @@ public class LiveClient {
return this;
}
public LiveClient unregisterListeners(@Nonnull Object object) {
public LiveClient registerListeners(@Nonnull List<Object> objects) {
objects.forEach(eventBus::register);
return this;
}
public LiveClient unregisterListener(@Nonnull Object object) {
eventBus.unregister(object);
return this;
}
public LiveClient unregisterListeners(@Nonnull List<Object> objects) {
objects.forEach(eventBus::unregister);
return this;
}
//TODO 弹幕发送队列
public Call<SendBulletScreenResponseEntity> sendBulletScreenAsync(@Nonnull String message) {