-
我保存了
这些信息构建一个offlineMessageSource用于撤回,其中ids和interids是通过gson转string然后再转回来,原类型为IntArray
所以是有什么解决方法吗,还是说有另外更好的方法?谢谢了
处理撤回
版本
|
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 22 replies
-
用法应该没有问题,但 MessageSource 本身就支持序列化,不需要手动转换 |
Beta Was this translation helpful? Give feedback.
-
builder 应该有 ids 方法 也可以使用 Mirai.constructMessageSource |
Beta Was this translation helpful? Give feedback.
-
好的,那我就直接序列化messagesource了
发自我的iPhone
…------------------ Original ------------------
From: Him188 <[email protected]>
Date: Mon,Mar 1,2021 10:09 AM
To: mamoe/mirai <[email protected]>
Cc: Eritque arcus <[email protected]>, Author <[email protected]>
Subject: Re: [mamoe/mirai] [问题]关于试图构建一个OfflineMessageSource用于撤回遇到的问题 (#1065)
用法应该没有问题,但 MessageSource 本身就支持序列化,不需要手动转换
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Beta Was this translation helpful? Give feedback.
-
@Him188 使用gson序列化出问题欸
代码:
是自己本身有实现序列化吗还是说我用的类错了,要MessageSource.Ser那个 |
Beta Was this translation helpful? Give feedback.
-
@Him188 好像出了点内部问题?
或
代码
|
Beta Was this translation helpful? Give feedback.
-
@Him188 撤回图片信息的时候报错
是不是要在把serialization module加到json前,把offlineimage的加到serialization module,还是说目前还没实现这个? |
Beta Was this translation helpful? Give feedback.
用法应该没有问题,但 MessageSource 本身就支持序列化,不需要手动转换