Documentation ¶
Index ¶
- Constants
- func NewiOSConnector(bridge imessage.Bridge) (imessage.API, error)
- type APIWithIPC
- type BackfillResult
- type ChatBridgeResult
- type ChatIDChangeRequest
- type ChatIDChangeResponse
- type CreateGroupRequest
- type GetChatRequest
- type GetChatsRequest
- type GetContactListResponse
- type GetContactRequest
- type GetMessageRequest
- type GetMessagesAfterRequest
- type GetRecentMessagesRequest
- type MessageBridgeResult
- type MessageIDQueryRequest
- type MessageIDQueryResponse
- type PingServerResponse
- type PrepareDMRequest
- type ResolveIdentifierRequest
- type ResolveIdentifierResponse
- type SendMediaRequest
- type SendMessageRequest
- type SendReadReceiptRequest
- type SendTapbackRequest
- type SetTypingRequest
- type UpcomingMessage
Constants ¶
View Source
const ( IncomingMessage ipc.Command = "message" IncomingReadReceipt ipc.Command = "read_receipt" IncomingTypingNotification ipc.Command = "typing" IncomingChat ipc.Command = "chat" IncomingChatID ipc.Command = "chat_id" IncomingPingServer ipc.Command = "ping_server" IncomingBridgeStatus ipc.Command = "bridge_status" IncomingContact ipc.Command = "contact" IncomingMessageIDQuery ipc.Command = "message_ids_after_time" IncomingPushKey ipc.Command = "push_key" IncomingSendMessageStatus ipc.Command = "send_message_status" IncomingBackfillTask ipc.Command = "backfill" )
View Source
const ( ReqSendMessage ipc.Command = "send_message" ReqSendMedia ipc.Command = "send_media" ReqSendTapback ipc.Command = "send_tapback" ReqSendReadReceipt ipc.Command = "send_read_receipt" ReqSetTyping ipc.Command = "set_typing" ReqGetChats ipc.Command = "get_chats" ReqGetChat ipc.Command = "get_chat" ReqGetChatAvatar ipc.Command = "get_chat_avatar" ReqGetContact ipc.Command = "get_contact" ReqGetContactList ipc.Command = "get_contact_list" ReqGetMessagesAfter ipc.Command = "get_messages_after" ReqGetRecentMessages ipc.Command = "get_recent_messages" ReqGetMessage ipc.Command = "get_message" ReqPreStartupSync ipc.Command = "pre_startup_sync" ReqPostStartupSync ipc.Command = "post_startup_sync" ReqResolveIdentifier ipc.Command = "resolve_identifier" ReqPrepareDM ipc.Command = "prepare_dm" ReqCreateGroup ipc.Command = "prepare_group_chat" ReqMessageBridgeResult ipc.Command = "message_bridge_result" ReqChatBridgeResult ipc.Command = "chat_bridge_result" ReqBackfillResult ipc.Command = "backfill_result" ReqUpcomingMessage ipc.Command = "upcoming_message" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type APIWithIPC ¶
type APIWithIPC interface { imessage.API SetIPC(*ipc.Processor) SetContactProxy(api imessage.ContactAPI) SetChatInfoProxy(api imessage.ChatInfoAPI) }
func NewPlainiOSConnector ¶
func NewPlainiOSConnector(logger log.Logger, bridge imessage.Bridge) APIWithIPC
type BackfillResult ¶
type ChatBridgeResult ¶
type ChatIDChangeRequest ¶
type ChatIDChangeResponse ¶
type ChatIDChangeResponse struct {
Changed bool `json:"changed"`
}
type CreateGroupRequest ¶
type CreateGroupRequest struct {
GUIDs []string `json:"guids"`
}
type GetChatRequest ¶
type GetChatsRequest ¶
type GetChatsRequest struct {
MinTimestamp float64 `json:"min_timestamp"`
}
type GetContactListResponse ¶
type GetContactRequest ¶
type GetContactRequest struct {
UserGUID string `json:"user_guid"`
}
type GetMessageRequest ¶
type GetMessageRequest struct {
GUID string `json:"guid"`
}
type GetMessagesAfterRequest ¶
type MessageBridgeResult ¶
type MessageIDQueryRequest ¶
type MessageIDQueryResponse ¶
type MessageIDQueryResponse struct {
IDs []string `json:"ids"`
}
type PingServerResponse ¶
type PrepareDMRequest ¶
type PrepareDMRequest struct {
GUID string `json:"guid"`
}
type ResolveIdentifierRequest ¶
type ResolveIdentifierRequest struct {
Identifier string `json:"identifier"`
}
type ResolveIdentifierResponse ¶
type ResolveIdentifierResponse struct {
GUID string `json:"guid"`
}
type SendMediaRequest ¶
type SendMediaRequest struct { ChatGUID string `json:"chat_guid"` Text string `json:"text"` imessage.Attachment ReplyTo string `json:"reply_to"` ReplyToPart int `json:"reply_to_part"` IsAudioMessage bool `json:"is_audio_message"` Metadata imessage.MessageMetadata `json:"metadata,omitempty"` }
type SendMessageRequest ¶
type SendReadReceiptRequest ¶
type SendTapbackRequest ¶
type SendTapbackRequest struct { ChatGUID string `json:"chat_guid"` TargetGUID string `json:"target_guid"` TargetPart int `json:"target_part"` Type imessage.TapbackType `json:"type"` }
type SetTypingRequest ¶
type UpcomingMessage ¶
Click to show internal directories.
Click to hide internal directories.