房间相册 发送图片至公屏

This commit is contained in:
wzq
2023-10-17 19:12:42 +08:00
parent ce5cc20ac4
commit 6134962297
10 changed files with 117 additions and 1 deletions

View File

@@ -1371,6 +1371,9 @@ public final class IMNetEaseManager {
case CUSTOM_MSG_NOTIFY_H5:
noticeH5(msg);
break;
case CUSTOM_MSG_ROOM_ALBUM:
addMessages(msg);
break;
default:
break;
}

View File

@@ -1,15 +1,22 @@
package com.yizhuan.xchat_android_core.im.custom.bean;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.Gson;
import lombok.Getter;
public class RoomAlbumAttachment extends CustomAttachment {
@Getter
private RoomAlbumMsgInfo mRoomAlbumMsgInfo;
public RoomAlbumAttachment() {
super(CUSTOM_MSG_ROOM_ALBUM, CUSTOM_MSG_ROOM_ALBUM_SUB);
}
@Override
protected void parseData(JSONObject data) {
mRoomAlbumMsgInfo = new Gson().fromJson(data.toJSONString(), RoomAlbumMsgInfo.class);
}
}

View File

@@ -0,0 +1,9 @@
package com.yizhuan.xchat_android_core.im.custom.bean
import com.yizhuan.xchat_android_core.level.UserLevelVo
data class RoomAlbumMsgInfo(
val roomPhoto: RoomPhoto,
val user: User,
val userLevel: UserLevelVo
)

View File

@@ -0,0 +1,16 @@
package com.yizhuan.xchat_android_core.im.custom.bean
data class RoomPhoto(
val createTime: String,
val giftId: Int,
val giftName: String,
val giftNum: Int,
val giftUrl: String,
val id: Int,
val photoUrl: String,
val roomUid: Int,
val status: Int,
val totalGoldPrice: Int,
val type: Int,
val uid: Int
)

View File

@@ -0,0 +1,33 @@
package com.yizhuan.xchat_android_core.im.custom.bean
data class User(
val avatar: String,
val birth: String,
val certifyModifyTimes: Int,
val channel: String,
val channelType: Int,
val createTime: String,
val currentApp: String,
val defUser: Int,
val deviceId: String,
val erbanNo: Int,
val fansNum: Int,
val followNum: Int,
val gender: Int,
val hasPrettyErbanNo: Boolean,
val lastLoginIp: String,
val lastLoginRegion: String,
val lastLoginTime: String,
val newDevice: Boolean,
val nick: String,
val nobleId: Int,
val os: String,
val osversion: String,
val parentMode: Boolean,
val phone: String,
val phoneAreaCode: String,
val platformRole: Int,
val uid: Int,
val updateTime: String,
val useStatus: Int
)