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 IS_BUGLE_DEFAULT = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_IS_BUGLE_DEFAULT,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.IsBugleDefaultResponse{},
|
2023-07-09 11:16:52 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var GET_UPDATES = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_GET_UPDATES,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.UpdateEvents{},
|
2023-07-09 11:16:52 +00:00
|
|
|
UseSessionID: true,
|
|
|
|
UseTTL: false,
|
|
|
|
}
|
|
|
|
|
|
|
|
var NOTIFY_DITTO_ACTIVITY = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_NOTIFY_DITTO_ACTIVITY,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
2023-07-09 11:16:52 +00:00
|
|
|
ResponseStruct: nil,
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
2023-07-16 21:51:17 +00:00
|
|
|
|
|
|
|
var LIST_CONTACTS = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_LIST_CONTACTS,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.ListContactsResponse{},
|
2023-07-16 21:51:17 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var LIST_TOP_CONTACTS = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_LIST_TOP_CONTACTS,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.ListTopContactsResponse{},
|
2023-07-16 21:51:17 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var GET_OR_CREATE_CONVERSATION = Route{
|
2023-07-17 13:51:31 +00:00
|
|
|
Action: gmproto.ActionType_GET_OR_CREATE_CONVERSATION,
|
|
|
|
MessageType: gmproto.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: gmproto.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &gmproto.GetOrCreateConversationResponse{},
|
2023-07-16 21:51:17 +00:00
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|