类图
2020-02-11 11:26:28 1 举报
消息发送类图
作者其他创作
大纲/内容
MessageReceiver
+ messageHadReceived(clientMsgId) + messageSendFail (clientMsgId)
ConsulationMessageList
+ consulationMessageList = [{ \"seqId\
+ getConsulationMessageList()+ insertSendingMessage(msg)+ insertSendFailMessage(msg)+ updateMessageStatus(msg)+ updateMessageSeqId(msg)+ getMessageListWhitoutSeqId()+ formatConsulationMessageData(Msg)+ replaceFromServerMessageList(messageList)
SendingMessageList
+ SendingMessageList = [{ // 保持发送消息的结构 \"authToken\": \"xxxx\
+ insert(sendingMessage)+ removeByClientId(clientId)+ getByClientId(clientId)+ getCheckCount(clientId)+ updateCheckCount(clientId)+ clearCheckCount(clientId)+ getClientIdAndCidList()+ getLength()+ formatSendingMessageData(Msg)
MessageSynchronizer
+ compareWithLocalMessage(ServerMessageList) { ConsulationMessageList.getMessageListWhitoutSeqId() compareWithServerMessage():whitoutSeqIdMessageList ConsulationMessageList.replaceFromServerMessageList( serverMessageList + whitoutSeqIdMessageList )}
SendFailMessageList
+ sendFailMessageList = [{ // 保持发送消息的结构 \"authToken\": \"xxxx\
+ insert(sendFailMessage)+ removeByClientId(clientId)+ getByClientId(clientId)+ updateResendCount(clientId)+ clearResendCount(clientId)+ getLength()+ formatSendFailMessageData(Msg)
MessageSender
+ sendMessageApiSuccess (msg)+ sendMessageApiFail (msg)+ syncSendMsgApiSuccess(msg)+ syncSendMsgApiFail(msg)+ syncMessageSuccess(msg)+ syncMessageFail(msg)
0 条评论
下一页