wxhelper/src/manager.h

43 lines
1.8 KiB
C
Raw Normal View History

2023-06-26 18:23:47 +08:00
#ifndef WXHELPER_MANAGER_H_
#define WXHELPER_MANAGER_H_
#include "Windows.h"
#include "wechat_function.h"
namespace wxhelper {
class Manager {
public:
explicit Manager(UINT64 base);
~Manager();
INT64 CheckLogin();
INT64 GetSelfInfo(common::SelfInfoInner& out);
INT64 SendTextMsg(const std::wstring& wxid, const std::wstring& msg);
2023-06-28 16:35:53 +08:00
INT64 SendImageMsg(const std::wstring& wxid, const std::wstring& image_path);
INT64 SendFileMsg(const std::wstring& wxid, const std::wstring& file_path);
2023-07-01 13:32:26 +08:00
INT64 GetContacts(std::vector<common::ContactInner> &vec);
2023-07-10 20:26:25 +08:00
INT64 GetChatRoomDetailInfo(const std::wstring& room_id,
common::ChatRoomInfoInner& room_info);
INT64 AddMemberToChatRoom(const std::wstring& room_id,
const std::vector<std::wstring>& members);
INT64 ModChatRoomMemberNickName(const std::wstring& room_id,
const std::wstring& wxid,
const std::wstring& nickname);
2023-07-14 22:25:11 +08:00
INT64 DelMemberFromChatRoom(const std::wstring& room_id,
const std::vector<std::wstring>& members);
INT64 GetMemberFromChatRoom(const std::wstring& room_id,
common::ChatRoomMemberInner& member);
2023-07-22 09:13:50 +08:00
INT64 SetTopMsg(ULONG64 msg_id);
INT64 RemoveTopMsg(const std::wstring& room_id,ULONG64 msg_id);
2023-07-27 21:18:42 +08:00
INT64 InviteMemberToChatRoom(const std::wstring& room_id,
const std::vector<std::wstring>& wxids);
2023-07-29 10:03:59 +08:00
INT64 CreateChatRoom(const std::vector<std::wstring>& wxids);
2023-07-31 16:11:47 +08:00
INT64 QuitChatRoom(const std::wstring& room_id);
INT64 ForwardMsg(UINT64 msg_id, const std::wstring& wxid);
2023-08-04 16:40:10 +08:00
INT64 GetSNSFirstPage();
INT64 GetSNSNextPage(UINT64 sns_id);
2023-07-10 20:26:25 +08:00
2023-06-26 18:23:47 +08:00
private:
UINT64 base_addr_;
};
} // namespace wxhelper
#endif