|
@@ -449,18 +449,18 @@ namespace mars{
|
|
|
};
|
|
|
|
|
|
class TReadEntry : public TSerializable {
|
|
|
- public:
|
|
|
- TReadEntry() : conversationType(0), line(0), readDt(0) {}
|
|
|
- std::string userId;
|
|
|
- int conversationType;
|
|
|
- std::string target;
|
|
|
- int line;
|
|
|
- int64_t readDt;
|
|
|
- virtual ~TReadEntry(){}
|
|
|
- #if WFCHAT_PROTO_SERIALIZABLE
|
|
|
- virtual void Serialize(void *writer) const;
|
|
|
- virtual void Unserialize(const Value& value);
|
|
|
- #endif //WFCHAT_PROTO_SERIALIZABLE
|
|
|
+ public:
|
|
|
+ TReadEntry() : conversationType(0), line(0), readDt(0) {}
|
|
|
+ std::string userId;
|
|
|
+ int conversationType;
|
|
|
+ std::string target;
|
|
|
+ int line;
|
|
|
+ int64_t readDt;
|
|
|
+ virtual ~TReadEntry(){}
|
|
|
+#if WFCHAT_PROTO_SERIALIZABLE
|
|
|
+ virtual void Serialize(void *writer) const;
|
|
|
+ virtual void Unserialize(const Value& value);
|
|
|
+#endif //WFCHAT_PROTO_SERIALIZABLE
|
|
|
};
|
|
|
|
|
|
class TDeliveryEntry : public TSerializable {
|
|
@@ -615,17 +615,6 @@ namespace mars{
|
|
|
virtual ~GetSettingCallback() {}
|
|
|
};
|
|
|
|
|
|
- class MessageDeliveredCallback {
|
|
|
- public:
|
|
|
- virtual void onUserReceivedMessage(const std::map<std::string, int64_t> &userReceived) = 0;
|
|
|
- virtual ~MessageDeliveredCallback() {}
|
|
|
- };
|
|
|
-
|
|
|
- class MessageReadedCallback {
|
|
|
- public:
|
|
|
- virtual void onUserReadedMessage(const std::list<TReadEntry> &userReceived) = 0;
|
|
|
- virtual ~MessageReadedCallback() {}
|
|
|
- };
|
|
|
|
|
|
enum ConnectionStatus {
|
|
|
kConnectionStatusSecretKeyMismatch = -6,
|
|
@@ -651,6 +640,8 @@ namespace mars{
|
|
|
virtual void onReceiveMessage(const std::list<TMessage> &messageList, bool hasMore) = 0;
|
|
|
virtual void onRecallMessage(const std::string operatorId, long long messageUid) = 0;
|
|
|
virtual void onDeleteMessage(long long messageUid) = 0;
|
|
|
+ virtual void onUserReceivedMessage(const std::map<std::string, int64_t> &userReceived) = 0;
|
|
|
+ virtual void onUserReadedMessage(const std::list<TReadEntry> &userReceived) = 0;
|
|
|
};
|
|
|
|
|
|
extern bool setAuthInfo(const std::string &userId, const std::string &token);
|
|
@@ -660,11 +651,6 @@ namespace mars{
|
|
|
extern void setConnectionStatusCallback(ConnectionStatusCallback *callback);
|
|
|
extern void setReceiveMessageCallback(ReceiveMessageCallback *callback);
|
|
|
|
|
|
- extern void setMessageDeliveredCallback(MessageDeliveredCallback *callback);
|
|
|
- extern void setMessageReadedCallback(MessageReadedCallback *callback);
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
extern void setDNSResult(std::vector<std::string> serverIPs);
|
|
|
extern void setRefreshUserInfoCallback(GetUserInfoCallback *callback);
|
|
|
extern void setRefreshGroupInfoCallback(GetGroupInfoCallback *callback);
|
|
@@ -771,12 +757,12 @@ namespace mars{
|
|
|
extern bool IsCommercialServer();
|
|
|
|
|
|
extern bool filesystem_exists(const std::string &path);
|
|
|
- extern bool filesystem_create_directories(const std::string &path);
|
|
|
+ extern bool filesystem_create_directories(const std::string &path);
|
|
|
extern bool filesystem_copy_file(const std::string &source, const std::string &dest, bool overwrite);
|
|
|
- extern bool filesystem_copy_files(const std::string &source, const std::string &dest);
|
|
|
+ extern bool filesystem_copy_files(const std::string &source, const std::string &dest);
|
|
|
extern bool filesystem_remove(const std::string &path);
|
|
|
- extern void filesystem_copy_directory(const std::string &strSourceDir, const std::string &strDestDir);
|
|
|
-
|
|
|
+ extern void filesystem_copy_directory(const std::string &strSourceDir, const std::string &strDestDir);
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|