gmessages/libgm/routes/messages.go

49 lines
1.4 KiB
Go
Raw Normal View History

package routes
import "go.mau.fi/mautrix-gmessages/libgm/binary"
var LIST_MESSAGES = Route{
Action: binary.ActionType_LIST_MESSAGES,
MessageType: binary.MessageType_BUGLE_MESSAGE,
BugleRoute: binary.BugleRoute_DataEvent,
ResponseStruct: &binary.FetchMessagesResponse{},
UseSessionID: false,
UseTTL: true,
}
var SEND_MESSAGE = Route{
Action: binary.ActionType_SEND_MESSAGE,
MessageType: binary.MessageType_BUGLE_MESSAGE,
BugleRoute: binary.BugleRoute_DataEvent,
ResponseStruct: &binary.SendMessageResponse{},
UseSessionID: false,
UseTTL: true,
}
var SEND_REACTION = Route{
Action: binary.ActionType_SEND_REACTION,
MessageType: binary.MessageType_BUGLE_MESSAGE,
BugleRoute: binary.BugleRoute_DataEvent,
ResponseStruct: &binary.SendReactionResponse{},
UseSessionID: false,
UseTTL: true,
}
var DELETE_MESSAGE = Route{
Action: binary.ActionType_DELETE_MESSAGE,
MessageType: binary.MessageType_BUGLE_MESSAGE,
BugleRoute: binary.BugleRoute_DataEvent,
ResponseStruct: &binary.DeleteMessageResponse{},
UseSessionID: false,
UseTTL: true,
}
2023-07-15 11:38:24 +00:00
var MESSAGE_READ = Route{
Action: binary.ActionType_MESSAGE_READ,
MessageType: binary.MessageType_BUGLE_MESSAGE,
BugleRoute: binary.BugleRoute_DataEvent,
ResponseStruct: nil,
UseSessionID: false,
UseTTL: true,
}