123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133 |
- /*
- * 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 <string>
- #include <list>
- #include <vector>
- #include "core/houseinfo.h"
- namespace jhws {
- struct Community {
- int code;
- std::string name;
- std::string communityId;
- };
- typedef std::vector<Community> CommunityList;
- struct Area {
- int code;
- std::string name;
- std::string areaId;
- };
- typedef std::vector<Area> AreaList;
- struct Building {
- int code;
- std::string name;
- std::string buildId;
- };
- typedef std::vector<Building> BuildingList;
- struct Unit {
- int code;
- std::string name;
- std::string unitId;
- };
- typedef std::vector<Unit> UnitList;
- struct Floor {
- int code;
- std::string name;
- std::string floorId;
- };
- typedef std::vector<Floor> FloorList;
- struct Room {
- int code;
- std::string name;
- std::string roomId;
- };
- typedef std::vector<Room> 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<Device> DeviceList;
- struct Message {
- std::string updateTime;
- std::string content;
- std::string title;
- };
- typedef std::vector<Message> MessageList;
- struct Update {
- std::string notice;
- std::string device;
- };
- typedef std::vector<Update> 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_ */
|