summaryrefslogtreecommitdiff
path: root/src/Network/Tox/Crypto
diff options
context:
space:
mode:
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r--src/Network/Tox/Crypto/Transport.hs13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Network/Tox/Crypto/Transport.hs b/src/Network/Tox/Crypto/Transport.hs
index efe491eb..8b7a7222 100644
--- a/src/Network/Tox/Crypto/Transport.hs
+++ b/src/Network/Tox/Crypto/Transport.hs
@@ -86,7 +86,20 @@ data CryptoData = CryptoData
86 , bufferData :: CryptoMessage 86 , bufferData :: CryptoMessage
87 } 87 }
88 88
89-- The 'UserStatus' equivalent in Presence is:
90--
91-- data JabberShow = Offline
92-- | ExtendedAway
93-- | Away -- Tox equiv: Away (1)
94-- | DoNotDisturb -- Tox equiv: Busy (2)
95-- | Available -- Tox equiv: Online (0)
96-- | Chatty
97-- deriving (Show,Enum,Ord,Eq,Read)
98--
99-- The Enum instance on 'UserStatus' is not arbitrary. It corresponds
100-- to on-the-wire id numbers.
89data UserStatus = Online | Away | Busy deriving (Show,Eq,Ord,Enum) 101data UserStatus = Online | Away | Busy deriving (Show,Eq,Ord,Enum)
102
90data TypingStatus = NotTyping | Typing deriving (Show,Eq,Ord,Enum) 103data TypingStatus = NotTyping | Typing deriving (Show,Eq,Ord,Enum)
91 104
92data CryptoMessage 105data CryptoMessage