mac

package
v0.0.0-...-55d53d3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2024 License: AGPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPermissions

func CheckPermissions() error

func NewChatDatabase

func NewChatDatabase(bridge imessage.Bridge) (imessage.API, error)

func NewChatInfoDatabase

func NewChatInfoDatabase(log log.Logger) (imessage.ChatInfoAPI, error)

Types

type Account

type Account struct {
	ID               string `json:"id"`
	Description      string `json:"description"`
	Enabled          bool   `json:"enabled"`
	ConnectionStatus string `json:"connection_status"`
	ServiceType      string `json:"service_type"`
}

type Attribute

type Attribute struct {
	Location int                  `json:"location"`
	Length   int                  `json:"length"`
	Values   map[AttributeKey]any `json:"values"`
}

type AttributeKey

type AttributeKey string
const (
	AttrBaseWritingDirection AttributeKey = "__kIMBaseWritingDirectionAttributeName"
	AttrFileTransferGUID     AttributeKey = "__kIMFileTransferGUIDAttributeName"
	AttrMessagePartIndex     AttributeKey = "__kIMMessagePartAttributeName"
	AttrURLPreviewData       AttributeKey = "__kIMDataDetectedAttributeName"
	AttrURL                  AttributeKey = "__kIMLinkAttributeName"
)

type AttributedString

type AttributedString struct {
	Content    string      `json:"content"`
	Attributes []Attribute `json:"attributes"`
}

func (*AttributedString) SortAttachments

func (as *AttributedString) SortAttachments(log maulogger.Logger, attachments []*imessage.Attachment) []*imessage.Attachment

type ContactStore

type ContactStore struct {
	HasContactAccess bool
	// contains filtered or unexported fields
}

func NewContactStore

func NewContactStore() *ContactStore

func (*ContactStore) GetContactInfo

func (cs *ContactStore) GetContactInfo(identifier string) (*imessage.Contact, error)

func (*ContactStore) GetContactList

func (cs *ContactStore) GetContactList() ([]*imessage.Contact, error)

func (ContactStore) RefreshContactList

func (cs ContactStore) RefreshContactList() error

func (*ContactStore) RequestContactAccess

func (cs *ContactStore) RequestContactAccess() error

func (ContactStore) SearchContactList

func (cs ContactStore) SearchContactList(searchTerms string) ([]*imessage.Contact, error)

type Track1728Payload

type Track1728Payload struct {
	Location int  `json:"1728_location"`
	Final    bool `json:"1728_final"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL