diff options
author | joe <joe@jerkface.net> | 2017-10-29 16:48:51 -0400 |
---|---|---|
committer | joe <joe@jerkface.net> | 2017-10-29 16:48:51 -0400 |
commit | b5e6bf0c5a13f1ce9a18b456d8f2705497e4388a (patch) | |
tree | b939d3304ad05a27306aa79b47910de118788a56 /src/Network/Tox/Crypto | |
parent | 634210355cbd860ff12c05d76fe9ebbd0c72b573 (diff) |
Comment about tox-jabber status equivalents.
Diffstat (limited to 'src/Network/Tox/Crypto')
-rw-r--r-- | src/Network/Tox/Crypto/Transport.hs | 13 |
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. | ||
89 | data UserStatus = Online | Away | Busy deriving (Show,Eq,Ord,Enum) | 101 | data UserStatus = Online | Away | Busy deriving (Show,Eq,Ord,Enum) |
102 | |||
90 | data TypingStatus = NotTyping | Typing deriving (Show,Eq,Ord,Enum) | 103 | data TypingStatus = NotTyping | Typing deriving (Show,Eq,Ord,Enum) |
91 | 104 | ||
92 | data CryptoMessage | 105 | data CryptoMessage |