mirror of
https://github.com/czp3009/bilibili-api.git
synced 2025-02-19 20:50:28 +08:00
添加 LiveClient.sendBulletScreen 的快捷调用
This commit is contained in:
parent
c4d2a9a870
commit
7f2947ad8a
@ -150,14 +150,18 @@ public class LiveClient implements Closeable {
|
||||
}
|
||||
|
||||
public SendBulletScreenResponseEntity sendBulletScreen(String message) throws IOException {
|
||||
return bilibiliServiceProvider.getLiveService()
|
||||
.sendBulletScreen(
|
||||
new BulletScreenEntity(
|
||||
liveRoomEntity != null ? liveRoomEntity.getRoomId() : showRoomId,
|
||||
userId,
|
||||
message
|
||||
)
|
||||
return sendBulletScreen(
|
||||
new BulletScreenEntity(
|
||||
liveRoomEntity != null ? liveRoomEntity.getRoomId() : showRoomId,
|
||||
userId,
|
||||
message
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public SendBulletScreenResponseEntity sendBulletScreen(BulletScreenEntity bulletScreenEntity) throws IOException {
|
||||
return bilibiliServiceProvider.getLiveService()
|
||||
.sendBulletScreen(bulletScreenEntity)
|
||||
.execute()
|
||||
.body();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user