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 ThreadRestService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
dealWithInviteMessage
(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
dealWithTransferMessage
(MessageTypeEnum type, MessageProtobuf message) void
-
Field Details
-
messageRestService
-
threadRestService
-
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
-
dealWithTransferMessage
-
dealWithInviteMessage
-