11 lines
425 B
Swift
11 lines
425 B
Swift
import Foundation
|
|
|
|
protocol MessageReaderProtocol {
|
|
func connect() throws
|
|
func getConversations() throws -> [iMessageConversation]
|
|
func getMessages(conversationId: String, since: Date?) throws -> [iMessage]
|
|
func lookupContact(identifier: String) -> ContactInfo?
|
|
func getAllContacts() -> [ContactInfo]
|
|
func loadContacts() async -> Bool
|
|
func extractTextFromAttributedBody(_ data: Data) -> String?
|
|
}
|