fixed "default constructor not found."

This commit is contained in:
wzq
2023-09-27 22:08:41 +08:00
parent 7de533bf3f
commit e236ef2aff
8 changed files with 27 additions and 32 deletions

View File

@@ -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? = "",
)
}

View File

@@ -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? = "",
)

View File

@@ -16,5 +16,5 @@ public class PlayEffectInfo {
private TarotMsgBean tarotMsgBean;
private NotifyH5Attachment.Bean notifyH5;
private NotifyH5Info notifyH5;
}