kkostiuk | 74d1ae4 | 2021-06-17 11:10:15 -0400 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2021 Savoir-faire Linux Inc. |
| 3 | * |
| 4 | * Author: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> |
| 5 | * |
| 6 | * This program is free software; you can redistribute it and/or modify |
| 7 | * it under the terms of the GNU General Public License as published by |
| 8 | * the Free Software Foundation; either version 3 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 11 | * This program is distributed in the hope that it will be useful, |
| 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 14 | * GNU General Public License for more details. |
| 15 | * |
| 16 | * You should have received a copy of the GNU General Public License |
| 17 | * along with this program; if not, write to the Free Software |
| 18 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 19 | */ |
| 20 | |
| 21 | import Foundation |
| 22 | |
| 23 | @objc protocol AdapterDelegate { |
| 24 | |
| 25 | func didReceiveMessage(_ message: [String: String], |
| 26 | from senderAccount: String, |
| 27 | messageId: String, |
| 28 | to receiverAccountId: String) |
| 29 | func newInteraction(conversationId: String, accountId: String, message: [String: String]) |
| 30 | func dataTransferEvent(withFileId transferId: String, withEventCode eventCode: Int, accountId: String, conversationId: String, interactionId: String) |
| 31 | func conversationSyncCompleted(accountId: String) |
| 32 | func receivedCallConnectionRequest(accountId: String, peerId: String, hasVideo: Bool) |
Kateryna Kostiuk | 2648aab | 2022-08-30 14:24:03 -0400 | [diff] [blame] | 33 | func receivedContactRequest(accountId: String, peerId: String) |
| 34 | func receivedConversationRequest(accountId: String, conversationId: String, metadata: [String: String]) |
kkostiuk | 74d1ae4 | 2021-06-17 11:10:15 -0400 | [diff] [blame] | 35 | } |