增加语音部分业务

This commit is contained in:
qiji4215
2023-04-28 16:16:17 +08:00
parent 977b4b54da
commit defcfb66fb
54 changed files with 1203 additions and 19 deletions

View File

@@ -0,0 +1,43 @@
package com.navinfo.omqs.bean
import java.io.Serializable
import java.util.*
class Attachment(filename: String, type: Int) : Serializable,
Cloneable {
//内容
var filename: String = ""
//标识 默认照片0 录音1
var type: Int
override fun toString(): String {
return "TipsAttachment{" +
"filename='" + filename + '\'' +
", type=" + type +
'}'
}
override fun equals(o: Any?): Boolean {
if (this === o) return true
if (o == null || javaClass != o.javaClass) return false
val that = o as Attachment
return type == that.type &&
filename == that.filename
}
override fun hashCode(): Int {
return Objects.hash(filename, type)
}
@kotlin.Throws(CloneNotSupportedException::class)
public override fun clone(): Any {
return super.clone()
}
init {
this.filename = filename
this.type = type
}
}

View File

@@ -0,0 +1,23 @@
package com.navinfo.omqs.bean
import java.io.Serializable
class ChatMsgEntity : Serializable, Cloneable {
var voiceUri //声音存储地址
: String? = null
var voiceTimeLong //声音时间长度
: String? = null
var name //声音名字
: String? = null
var isDelete //是否被删除
= false
@kotlin.Throws(CloneNotSupportedException::class)
public override fun clone(): Any {
return super.clone()
}
companion object {
private val TAG: String = ChatMsgEntity::class.java.getSimpleName()
}
}