From 7f2947ad8a39401de3548f7d00a057d1a8b27bdd Mon Sep 17 00:00:00 2001 From: czp Date: Tue, 6 Feb 2018 15:34:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20LiveClient.sendBulletScree?= =?UTF-8?q?n=20=E7=9A=84=E5=BF=AB=E6=8D=B7=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bilibili/api/live/socket/LiveClient.java | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/hiczp/bilibili/api/live/socket/LiveClient.java b/src/main/java/com/hiczp/bilibili/api/live/socket/LiveClient.java index 1997999..a4d6c33 100644 --- a/src/main/java/com/hiczp/bilibili/api/live/socket/LiveClient.java +++ b/src/main/java/com/hiczp/bilibili/api/live/socket/LiveClient.java @@ -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(); }