]> git.mxchange.org Git - friendica.git/blobdiff - src/Model/Conversation.php
Rename PROTOCOL_* constants to Model\Conversation::PARCEL_*
[friendica.git] / src / Model / Conversation.php
index 98db86188f89c5872b578324f5d3d351a5d2108f..6bf31db6e6f9202a7e3183e5ab252ca6a7c4a330 100644 (file)
@@ -11,13 +11,16 @@ require_once "include/dba.php";
 
 class Conversation
 {
-       const PROTOCOL_UNKNOWN         = 0;
-       const PROTOCOL_DFRN            = 1;
-       const PROTOCOL_DIASPORA        = 2;
-       const PROTOCOL_OSTATUS_SALMON  = 3;
-       const PROTOCOL_OSTATUS_FEED    = 4; // Deprecated
-       const PROTOCOL_GS_CONVERSATION = 5; // Deprecated
-       const PROTOCOL_SPLITTED_CONV   = 6;
+       /*
+        * These constants represent the parcel format used to transport a conversation independently of the message protocol.
+        * It currently is stored in the "protocol" field for legacy reasons.
+        */
+       const PARCEL_UNKNOWN            = 0;
+       const PARCEL_DFRN               = 1;
+       const PARCEL_DIASPORA           = 2;
+       const PARCEL_SALMON             = 3;
+       const PARCEL_FEED               = 4; // Deprecated
+       const PARCEL_SPLIT_CONVERSATION = 6;
 
        /**
         * @brief Store the conversation data