fixed "default constructor not found."
This commit is contained in:
@@ -4,19 +4,8 @@ import com.alibaba.fastjson.JSONObject
|
||||
import com.google.gson.Gson
|
||||
|
||||
class NotifyH5Attachment(second: Int) : CustomAttachment(CUSTOM_MSG_NOTIFY_H5, second) {
|
||||
var bean: Bean? = null
|
||||
var bean: NotifyH5Info? = null
|
||||
override fun parseData(data: JSONObject) {
|
||||
bean = Gson().fromJson(data.toJSONString(), Bean::class.java)
|
||||
bean = Gson().fromJson(data.toJSONString(), NotifyH5Info::class.java)
|
||||
}
|
||||
|
||||
data class Bean(
|
||||
val roomUid: Int? = 0,
|
||||
|
||||
/**
|
||||
* 飘屏类型 0 房间静态飘屏 1 全服动态飘屏
|
||||
*/
|
||||
val floatingType: Int? = 0,
|
||||
|
||||
val content: String? = "",
|
||||
)
|
||||
}
|
@@ -0,0 +1,12 @@
|
||||
package com.yizhuan.xchat_android_core.im.custom.bean
|
||||
|
||||
class NotifyH5Info (
|
||||
val roomUid: Int? = 0,
|
||||
|
||||
/**
|
||||
* 飘屏类型 0 房间静态飘屏 1 全服动态飘屏
|
||||
*/
|
||||
val floatingType: Int? = 0,
|
||||
|
||||
val content: String? = "",
|
||||
)
|
@@ -16,5 +16,5 @@ public class PlayEffectInfo {
|
||||
|
||||
private TarotMsgBean tarotMsgBean;
|
||||
|
||||
private NotifyH5Attachment.Bean notifyH5;
|
||||
private NotifyH5Info notifyH5;
|
||||
}
|
Reference in New Issue
Block a user