123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139 |
- #pragma once
- #include <iostream>
- #include <time.h>
- #include <ctime>
- #include "Util/logger.h"
- #include "Util/NoticeCenter.h"
- #include "Poller/EventPoller.h"
- #include "Player/PlayerProxy.h"
- #include "Rtmp/RtmpPusher.h"
- #include "Common/config.h"
- #include "Pusher/MediaPusher.h"
- #include "Extension/Frame.h"
- #include "Util/SqlPool.h"
- #include "Network/TcpClient.h"
- #include "Poller/Timer.h"
- #include "TCPClient.h"
- #include "inifile.h"
- #include "Notices.h"
- #include "md5.h"
- #include "NettyHttpResultMsg.h"
- #include "NettyHttpToken.h"
- #include "NettyHttpNull.h"
- #include "NettyHttpCarInfo.h"
- #include "NettyHttpPeakValleyConfig.h"
- #include "NettyHttpCrowdingDegreeConfig.h"
- #include "NettyHttpDeviceConfig.h"
- using namespace std;
- namespace MIVA
- {
- class HttpClient
- {
- private:
-
- std::string account;
- std::string pwd = "sunwin20211102";
-
- std::string privateKey = "mwWAH2eUAAHodlRt";
-
- std::string authToken = "";
-
- std::string refreshToken = "";
-
- public:
- HttpClient();
- ~HttpClient();
-
-
- int32_t Init(std::string account,std::string url, int port);
-
-
- static std::shared_ptr<HttpClient> CreateNew();
-
-
- int32_t LoginNetty();
-
-
- int32_t GetUserData();
-
-
- int32_t GetPeakValleyConfig();
-
-
- int32_t GetCrowdingDegreeConfig();
-
-
- int32_t GetVideoConfig();
-
-
- int32_t GetSystemConfig();
-
-
- static void getDataTime(char *ctime);
-
-
- bool alive();
-
- };
- }
|