mirror of
https://github.com/ttttupup/wxhelper.git
synced 2025-04-20 03:49:17 +08:00
43 lines
1.8 KiB
C++
43 lines
1.8 KiB
C++
#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);
|
|
INT64 SendImageMsg(const std::wstring& wxid, const std::wstring& image_path);
|
|
INT64 SendFileMsg(const std::wstring& wxid, const std::wstring& file_path);
|
|
INT64 GetContacts(std::vector<common::ContactInner> &vec);
|
|
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);
|
|
INT64 DelMemberFromChatRoom(const std::wstring& room_id,
|
|
const std::vector<std::wstring>& members);
|
|
INT64 GetMemberFromChatRoom(const std::wstring& room_id,
|
|
common::ChatRoomMemberInner& member);
|
|
INT64 SetTopMsg(ULONG64 msg_id);
|
|
INT64 RemoveTopMsg(const std::wstring& room_id,ULONG64 msg_id);
|
|
INT64 InviteMemberToChatRoom(const std::wstring& room_id,
|
|
const std::vector<std::wstring>& wxids);
|
|
INT64 CreateChatRoom(const std::vector<std::wstring>& wxids);
|
|
INT64 QuitChatRoom(const std::wstring& room_id);
|
|
INT64 ForwardMsg(UINT64 msg_id, const std::wstring& wxid);
|
|
INT64 GetSNSFirstPage();
|
|
INT64 GetSNSNextPage(UINT64 sns_id);
|
|
|
|
private:
|
|
UINT64 base_addr_;
|
|
};
|
|
|
|
} // namespace wxhelper
|
|
#endif |