mirror of
https://github.com/czp3009/bilibili-api.git
synced 2025-02-19 20:50:28 +08:00
弹幕推送 socket 有关的事件的抽象方法添加一些方法以方便编程
This commit is contained in:
parent
332069a0d1
commit
4e97600b01
@ -6,4 +6,8 @@ public abstract class ReceiveDataPackageEvent<T extends DataEntity> extends Rece
|
||||
ReceiveDataPackageEvent(Object source, T entity) {
|
||||
super(source, entity);
|
||||
}
|
||||
|
||||
public DataEntity getEntity0() {
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
|
@ -6,4 +6,8 @@ public abstract class ReceiveRoomStatusPackageEvent<T extends RoomStatusEntity>
|
||||
ReceiveRoomStatusPackageEvent(Object source, T entity) {
|
||||
super(source, entity);
|
||||
}
|
||||
|
||||
public RoomStatusEntity getEntity0() {
|
||||
return entity;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user