mirror of
https://github.com/czp3009/bilibili-api.git
synced 2026-08-13 22:43:29 +08:00
添加 LiveClient.sendBulletScreen 的快捷调用
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user