]> git.mxchange.org Git - friendica.git/blob - src/Model/Conversation.php
Merge pull request #12674 from nupplaphil/bug/config_typesafe
[friendica.git] / src / Model / Conversation.php
1 <?php
2 /**
3  * @copyright Copyright (C) 2010-2023, the Friendica project
4  *
5  * @license GNU AGPL version 3 or any later version
6  *
7  * This program is free software: you can redistribute it and/or modify
8  * it under the terms of the GNU Affero General Public License as
9  * published by the Free Software Foundation, either version 3 of the
10  * License, or (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15  * GNU Affero General Public License for more details.
16  *
17  * You should have received a copy of the GNU Affero General Public License
18  * along with this program.  If not, see <https://www.gnu.org/licenses/>.
19  *
20  */
21
22 namespace Friendica\Model;
23
24 class Conversation
25 {
26         /*
27          * These constants represent the parcel format used to transport a conversation independently of the message protocol.
28          * It currently is stored in the "protocol" field for legacy reasons.
29          */
30         const PARCEL_ACTIVITYPUB        = 0;
31         const PARCEL_DFRN               = 1; // Deprecated
32         const PARCEL_DIASPORA           = 2;
33         const PARCEL_SALMON             = 3;
34         const PARCEL_FEED               = 4; // Deprecated
35         const PARCEL_SPLIT_CONVERSATION = 6; // @deprecated since version 2022.09
36         const PARCEL_LEGACY_DFRN        = 7; // @deprecated since version 2021.09
37         const PARCEL_DIASPORA_DFRN      = 8;
38         const PARCEL_LOCAL_DFRN         = 9;
39         const PARCEL_DIRECT             = 10;
40         const PARCEL_IMAP               = 11;
41         const PARCEL_RDF                = 12;
42         const PARCEL_RSS                = 13;
43         const PARCEL_ATOM               = 14;
44         const PARCEL_TWITTER            = 67;
45         const PARCEL_UNKNOWN            = 255;
46
47         /**
48          * Unknown message direction
49          */
50         const UNKNOWN = 0;
51         /**
52          * The message had been pushed to this sytem
53          */
54         const PUSH    = 1;
55         /**
56          * The message had been fetched by our system
57          */
58         const PULL    = 2;
59         /**
60          * The message had been pushed to this system via a relay server
61          */
62         const RELAY   = 3;
63
64 }