Package com.bytedesk.core.message
Class MessagePersistService
java.lang.Object
com.bytedesk.core.message.MessagePersistService
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MessageRestService
private final org.modelmapper.ModelMapper
private final NoticeRestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
dealWithFaqRateMessage
(MessageTypeEnum type, MessageProtobuf message) private void
dealWithInviteMessage
(MessageTypeEnum type, MessageProtobuf message) private void
dealWithLeaveMsg
(MessageTypeEnum type, MessageProtobuf message) private boolean
dealWithMessageNotification
(MessageTypeEnum type, MessageProtobuf messageProtobuf) private void
dealWithMessageRecall
(MessageProtobuf message) private void
dealWithMessageReceipt
(MessageTypeEnum type, MessageProtobuf message) private void
dealWithRateMessage
(MessageTypeEnum type, MessageProtobuf message) private void
dealWithRobotRateMessage
(MessageTypeEnum type, MessageProtobuf message) private void
dealWithTransferMessage
(MessageTypeEnum type, MessageProtobuf message) void
-
Field Details
-
messageRestService
-
noticeRestService
-
modelMapper
private final org.modelmapper.ModelMapper modelMapper
-
-
Constructor Details
-
MessagePersistService
public MessagePersistService()
-
-
Method Details
-
persist
-
dealWithMessageNotification
private boolean dealWithMessageNotification(@NonNull MessageTypeEnum type, MessageProtobuf messageProtobuf) -
dealWithMessageReceipt
-
dealWithMessageRecall
-
dealWithRateMessage
-
dealWithLeaveMsg
-
dealWithFaqRateMessage
-
dealWithRobotRateMessage
-
dealWithTransferMessage
-
dealWithInviteMessage
-