From 41376bcab12ca7920717b5a7f0d93fe5c28a0393 Mon Sep 17 00:00:00 2001 From: czp3009 Date: Wed, 27 Jun 2018 19:03:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=AE=A2=E5=AD=97=E6=AE=B5=E5=92=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../bullet_screen_stream_json/SEND_GIFT.json | 6 ++-- .../live/socket/entity/SendGiftEntity.java | 34 +++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/record/bullet_screen_stream_json/SEND_GIFT.json b/record/bullet_screen_stream_json/SEND_GIFT.json index d6fc7a0..95be84d 100644 --- a/record/bullet_screen_stream_json/SEND_GIFT.json +++ b/record/bullet_screen_stream_json/SEND_GIFT.json @@ -40,6 +40,7 @@ "giftType": 0, "action": "赠送", "super": 1, + "super_gift_num": 1, "price": 100000, "rnd": "1980508331", "newMedal": 0, @@ -60,7 +61,7 @@ "eventNum": 0, "smalltv_msg": [], "specialGift": { - "id": 207945, + "id": "316221038798", "time": 90, "hadJoin": 0, "num": 1, @@ -85,7 +86,8 @@ "now": 0, "max": 5000 } - } + }, + "move": 1 }, "addFollow": 0, "effect_block": 0, diff --git a/src/main/java/com/hiczp/bilibili/api/live/socket/entity/SendGiftEntity.java b/src/main/java/com/hiczp/bilibili/api/live/socket/entity/SendGiftEntity.java index 8dd6f54..cc1896b 100644 --- a/src/main/java/com/hiczp/bilibili/api/live/socket/entity/SendGiftEntity.java +++ b/src/main/java/com/hiczp/bilibili/api/live/socket/entity/SendGiftEntity.java @@ -45,6 +45,7 @@ public class SendGiftEntity implements DataEntity { * giftType : 0 * action : 赠送 * super : 1 + * super_gift_num : 1 * price : 100000 * rnd : 1980508331 * newMedal : 0 @@ -60,9 +61,9 @@ public class SendGiftEntity implements DataEntity { * eventScore : 0 * eventNum : 0 * smalltv_msg : [] - * specialGift : {"id":207945,"time":90,"hadJoin":0,"num":1,"content":"你们城里人真会玩","action":"start","storm_gif":"http://static.hdslb.com/live-static/live-room/images/gift-section/mobilegift/2/jiezou.gif?2017011901"} + * specialGift : {"id":"316221038798","time":90,"hadJoin":0,"num":1,"content":"你们城里人真会玩","action":"start","storm_gif":"http://static.hdslb.com/live-static/live-room/images/gift-section/mobilegift/2/jiezou.gif?2017011901"} * notice_msg : [] - * capsule : {"normal":{"coin":166,"change":10,"progress":{"now":3630,"max":10000}},"colorful":{"coin":2,"change":0,"progress":{"now":0,"max":5000}}} + * capsule : {"normal":{"coin":166,"change":10,"progress":{"now":3630,"max":10000}},"colorful":{"coin":2,"change":0,"progress":{"now":0,"max":5000}},"move": 1} * addFollow : 0 * effect_block : 0 * coin_type : gold @@ -89,6 +90,8 @@ public class SendGiftEntity implements DataEntity { private String action; @SerializedName("super") private int superX; + @SerializedName("super_gift_num") + private int superGiftNumber; @SerializedName("price") private int price; @SerializedName("rnd") @@ -225,6 +228,14 @@ public class SendGiftEntity implements DataEntity { this.superX = superX; } + public int getSuperGiftNumber() { + return superGiftNumber; + } + + public void setSuperGiftNumber(int superGiftNumber) { + this.superGiftNumber = superGiftNumber; + } + public int getPrice() { return price; } @@ -450,7 +461,7 @@ public class SendGiftEntity implements DataEntity { public static class SpecialGift { /** - * id : 207945 + * id : 316221038798 * time : 90 * hadJoin : 0 * num : 1 @@ -460,7 +471,7 @@ public class SendGiftEntity implements DataEntity { */ @SerializedName("id") - private int id; + private String id; @SerializedName("time") private int time; @SerializedName("hadJoin") @@ -474,11 +485,11 @@ public class SendGiftEntity implements DataEntity { @SerializedName("storm_gif") private String stormGif; - public int getId() { + public String getId() { return id; } - public void setId(int id) { + public void setId(String id) { this.id = id; } @@ -535,12 +546,15 @@ public class SendGiftEntity implements DataEntity { /** * normal : {"coin":166,"change":10,"progress":{"now":3630,"max":10000}} * colorful : {"coin":2,"change":0,"progress":{"now":0,"max":5000}} + * move : 1 */ @SerializedName("normal") private Normal normal; @SerializedName("colorful") private Colorful colorful; + @SerializedName("move") + private int move; public Normal getNormal() { return normal; @@ -558,6 +572,14 @@ public class SendGiftEntity implements DataEntity { this.colorful = colorful; } + public int getMove() { + return move; + } + + public void setMove(int move) { + this.move = move; + } + public static class Normal { /** * coin : 166