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