status-go/protocol/common/chat_entity.go

25 lines
505 B
Go
Raw Normal View History

package common
import (
"crypto/ecdsa"
"github.com/golang/protobuf/proto"
"github.com/status-im/status-go/protocol/protobuf"
)
2020-07-29 10:55:33 +00:00
// ChatEntity is anything that is sendable in a chat.
// Currently it encompass a Message and EmojiReaction.
type ChatEntity interface {
proto.Message
GetChatId() string
GetMessageType() protobuf.MessageType
GetSigPubKey() *ecdsa.PublicKey
GetProtobuf() proto.Message
GetGrant() []byte
WrapGroupMessage() bool
SetMessageType(messageType protobuf.MessageType)
}