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_CONVERSATIONS_WITH_UPDATES = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_LIST_CONVERSATIONS,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_ANNOTATION,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.Conversations{},
|
2023-07-09 11:16:52 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var LIST_CONVERSATIONS = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_LIST_CONVERSATIONS,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.Conversations{},
|
2023-07-09 11:16:52 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var GET_CONVERSATION_TYPE = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_GET_CONVERSATION_TYPE,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.GetConversationTypeResponse{},
|
2023-07-09 11:16:52 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
2023-07-09 17:35:29 +00:00
|
|
|
|
2023-07-17 23:19:25 +00:00
|
|
|
var GET_CONVERSATION = Route{
|
|
|
|
Action: gmproto.ActionType_GET_CONVERSATION,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.GetConversationResponse{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
2023-07-09 17:35:29 +00:00
|
|
|
var GET_PARTICIPANT_THUMBNAIL = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_GET_PARTICIPANTS_THUMBNAIL,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.ParticipantThumbnail{},
|
2023-07-09 17:35:29 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var UPDATE_CONVERSATION = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_UPDATE_CONVERSATION,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.UpdateConversationResponse{},
|
2023-07-09 17:35:29 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
2023-07-15 16:48:11 +00:00
|
|
|
|
|
|
|
var TYPING_UPDATES = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_TYPING_UPDATES,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
2023-07-15 16:48:11 +00:00
|
|
|
ResponseStruct: nil,
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|