blob: 3ce05443cf8145af69145561561d7424b9231f9e [file] [log] [blame]
/*
* Copyright (C) 2021 Savoir-faire Linux Inc.
*
* Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
import Foundation
@objc protocol AdapterDelegate {
func didReceiveMessage(_ message: [String: String],
from senderAccount: String,
messageId: String,
to receiverAccountId: String)
func newInteraction(conversationId: String, accountId: String, message: [String: String])
func dataTransferEvent(withFileId transferId: String, withEventCode eventCode: Int, accountId: String, conversationId: String, interactionId: String)
func conversationSyncCompleted(accountId: String)
func conversationCloned(accountId: String)
func receivedConversationRequest(accountId: String, conversationId: String, metadata: [String: String])
}