KF5 / KF5SDK-Andriod2.0

kf5 sdk for Android2.0
13 stars 13 forks source link

如何清空未读数? #17

Open OHeroJ opened 3 years ago

ChosenKing commented 3 years ago

没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。

------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

OHeroJ commented 3 years ago

打开聊天界面后,获取未读数,还是有数据

getUnReadMessageCount
OHeroJ commented 3 years ago

没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

打开聊天界面后,获取未读数,还是有数据

getUnReadMessageCount
ChosenKing commented 3 years ago

getUnReadMessageCount这个接口要传入一个lastMessageId,需要传本地缓存的最后一条消息id。。。。

------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:52 @.>; @.**@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17)

没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

打开聊天界面后,获取未读数,还是有数据 getUnReadMessageCount

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

OHeroJ commented 3 years ago

getUnReadMessageCount这个接口要传入一个lastMessageId,需要传本地缓存的最后一条消息id。。。。 ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:52 @.>; @.**@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) 没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 打开聊天界面后,获取未读数,还是有数据 getUnReadMessageCount — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

iOS 的都可以,这个不应该接口层面做么?

ChosenKing commented 3 years ago

http接口去哪里拿这个消息id,你调用这个接口的时候把参数丢进去就可以了,如果我把参数封装进去,那岂不是这个接口参数有变化我就得再发一次包哦????

------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:57 @.>; @.**@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17)

getUnReadMessageCount这个接口要传入一个lastMessageId,需要传本地缓存的最后一条消息id。。。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:52 @.>; @.@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) 没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 打开聊天界面后,获取未读数,还是有数据 getUnReadMessageCount — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

iOS 的都可以,这个不应该接口层面做么?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

OHeroJ commented 3 years ago

http接口去哪里拿这个消息id,你调用这个接口的时候把参数丢进去就可以了,如果我把参数封装进去,那岂不是这个接口参数有变化我就得再发一次包哦???? ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:57 @.>; @.**@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) getUnReadMessageCount这个接口要传入一个lastMessageId,需要传本地缓存的最后一条消息id。。。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:52 @.>; @.@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) 没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 打开聊天界面后,获取未读数,还是有数据 getUnReadMessageCount — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. iOS 的都可以,这个不应该接口层面做么? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

http 接口当然是这样搞,但是作为客户端的sdk. 这个参数不需要对接方提供,sdk 里面都可以拿到,存储都是 sdk 里面做的

OHeroJ commented 3 years ago

http接口去哪里拿这个消息id,你调用这个接口的时候把参数丢进去就可以了,如果我把参数封装进去,那岂不是这个接口参数有变化我就得再发一次包哦???? ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.**>; 发送时间: 2021年6月22日(星期二) 上午9:57 @.**>; @.**@.**>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) getUnReadMessageCount这个接口要传入一个lastMessageId,需要传本地缓存的最后一条消息id。。。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:52 @.>; @.@.>; 主题: Re: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) 没有可调用清空未读消息数的接口,需要用户自己打开im同步最新消息之后便可视为清空了。。 … ------------------ 原始邮件 ------------------ 发件人: "KF5/KF5SDK-Andriod2.0" @.>; 发送时间: 2021年6月22日(星期二) 上午9:26 @.>; @.***>; 主题: [KF5/KF5SDK-Andriod2.0] 如何清空未读数? (#17) — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe. 打开聊天界面后,获取未读数,还是有数据 getUnReadMessageCount — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. iOS 的都可以,这个不应该接口层面做么? — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

http 接口当然是这样搞,但是作为客户端的sdk. 这个参数不需要对接方提供,sdk 里面都可以拿到,存储都是 sdk 里面做的,iOS 的sdk 封装就比较无脑,对于使用方接入简单很多。使用方知道的越少,说明这个sdk 封装的越好。而这个sdk 封装的,不说这种少入参问题,关键是文档都没一个,接得真肉疼