弹幕推送 socket 有关的事件的抽象方法添加一些方法以方便编程

This commit is contained in:
czp 2018-02-24 18:59:48 +08:00
parent 332069a0d1
commit 4e97600b01
2 changed files with 8 additions and 0 deletions

View File

@ -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;
}
}

View File

@ -6,4 +6,8 @@ public abstract class ReceiveRoomStatusPackageEvent<T extends RoomStatusEntity>
ReceiveRoomStatusPackageEvent(Object source, T entity) {
super(source, entity);
}
public RoomStatusEntity getEntity0() {
return entity;
}
}