github.com/status-im/status-go@v1.1.0/protocol/common/chat_entity.go (about) 1 package common 2 3 import ( 4 "crypto/ecdsa" 5 6 "github.com/golang/protobuf/proto" 7 8 "github.com/status-im/status-go/protocol/protobuf" 9 ) 10 11 // ChatEntity is anything that is sendable in a chat. 12 // Currently it encompass a Message and EmojiReaction. 13 type ChatEntity interface { 14 proto.Message 15 16 GetChatId() string 17 GetMessageType() protobuf.MessageType 18 GetSigPubKey() *ecdsa.PublicKey 19 GetProtobuf() proto.Message 20 WrapGroupMessage() bool 21 22 SetMessageType(messageType protobuf.MessageType) 23 }