/* * jhws.h * * Created on: 2022年4月22日 * Author: pengzc */ #ifndef JNI_CORE_JHWS_H_ #define JNI_CORE_JHWS_H_ #define WDKL_VERSION "wdkl_version" #define JHWS_VERSION_NUMBER "wdkl_version_number" #include #include #include #include "core/houseinfo.h" namespace jhws { struct Community { int code; std::string name; std::string communityId; }; typedef std::vector CommunityList; struct Area { int code; std::string name; std::string areaId; }; typedef std::vector AreaList; struct Building { int code; std::string name; std::string buildId; }; typedef std::vector BuildingList; struct Unit { int code; std::string name; std::string unitId; }; typedef std::vector UnitList; struct Floor { int code; std::string name; std::string floorId; }; typedef std::vector FloorList; struct Room { int code; std::string name; std::string roomId; }; typedef std::vector RoomList; struct Device { std::string type; std::string deviceNumber; int communitycode; int areacode; std::string areaname; int buildcode; std::string buildname; int unitcode; std::string unitname; }; typedef std::vector DeviceList; struct Message { std::string updateTime; std::string content; std::string title; }; typedef std::vector MessageList; struct Update { std::string notice; std::string device; }; typedef std::vector UpdateList; //获取token int GetToken(const std::string& id, const std::string& secret, const std::string& encrypted, j::house_setting* profile); //获取社区列表 int GetCommunities(CommunityList& list, j::house_setting* profile); //获取区域列表 int GetAreas(AreaList& list, j::house_setting* profile); //获取楼栋列表 int GetBuildings(BuildingList& list, j::house_setting* profile); //获取单元列表 int GetUnits(UnitList& list, j::house_setting* profile); //获取楼层列表 int GetFloors(FloorList& list, j::house_setting* profile); //获取房间列表 int GetRooms(RoomList& list, j::house_setting* profile); //绑定设备 int BindDevice(j::house_setting* profile); //获取设备列表 int GetDevice(DeviceList& list, j::house_setting* profile); //获取消息最新时间 int GetUpdate(Update& list); //获取消息列表 int GetMessage(MessageList& list); //报警 int Alarm(j::house_setting* profile); } /* namespace jhws */ #endif /* JNI_CORE_JHWS_H_ */