2023-07-09 11:16:52 +00:00
|
|
|
package routes
|
|
|
|
|
|
|
|
import "go.mau.fi/mautrix-gmessages/libgm/binary"
|
|
|
|
|
|
|
|
var LIST_CONVERSATIONS_WITH_UPDATES = Route{
|
|
|
|
Action: binary.ActionType_LIST_CONVERSATIONS,
|
|
|
|
MessageType: binary.MessageType_BUGLE_ANNOTATION,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &binary.Conversations{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var LIST_CONVERSATIONS = Route{
|
|
|
|
Action: binary.ActionType_LIST_CONVERSATIONS,
|
|
|
|
MessageType: binary.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &binary.Conversations{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var GET_CONVERSATION_TYPE = Route{
|
|
|
|
Action: binary.ActionType_GET_CONVERSATION_TYPE,
|
|
|
|
MessageType: binary.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &binary.GetConversationTypeResponse{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
2023-07-09 17:35:29 +00:00
|
|
|
|
|
|
|
var GET_PARTICIPANT_THUMBNAIL = Route{
|
|
|
|
Action: binary.ActionType_GET_PARTICIPANTS_THUMBNAIL,
|
|
|
|
MessageType: binary.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &binary.ParticipantThumbnail{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
|
|
|
|
|
|
|
var UPDATE_CONVERSATION = Route{
|
|
|
|
Action: binary.ActionType_UPDATE_CONVERSATION,
|
|
|
|
MessageType: binary.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: &binary.UpdateConversationResponse{},
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|
2023-07-15 16:48:11 +00:00
|
|
|
|
|
|
|
var TYPING_UPDATES = Route{
|
|
|
|
Action: binary.ActionType_TYPING_UPDATES,
|
|
|
|
MessageType: binary.MessageType_BUGLE_MESSAGE,
|
|
|
|
BugleRoute: binary.BugleRoute_DataEvent,
|
|
|
|
ResponseStruct: nil,
|
|
|
|
UseSessionID: false,
|
|
|
|
UseTTL: true,
|
|
|
|
}
|