/*
 * @Description: 
 * @Version: 1.0
 * @Autor: lishengyin
 * @Date: 2021-11-04 15:59:10
 * @LastEditors: lishengyin
 * @LastEditTime: 2021-11-24 15:17:42
 */

#pragma once
#include <iostream>
#include <vector>

#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 "NettyHttpTrainInfo.h"
#include "NettyHttpCarDevData.h"

using namespace  std;

class NettyHttpCarInfo
{
public:
    std::string id;
    std::string pid;
    std::string label;
    NettyHttpTrainInfo attr;
    std::string attr1;
    std::string child;
    vector<NettyHttpCarDevData> children;

public:
    NettyHttpCarInfo();
    ~NettyHttpCarInfo();

    /**
     * @description: json转换为对象
     * @param {Value&} object
     * @return {*}
     */    
    bool jsonToObject(const rapidjson::Value& object);
    /**
     * @description: 数据同步
     * @param {*}
     * @return {*}
     */    
    bool NettyClientDataSync();
};