/**
  * Aliyun_Sls_Models_ListTopicsResponse constructor
  *
  * @param array $resp
  *            ListTopics HTTP response body
  * @param array $header
  *            ListTopics HTTP response header
  */
 public function __construct($resp, $header)
 {
     parent::__construct($header);
     $this->count = $resp['count'];
     $this->topics = $resp['topics'];
     $this->nextToken = isset($resp['next_token']) ? $resp['next_token'] : NULL;
 }
 /**
  * Aliyun_Sls_Models_GetHistogramsResponse constructor
  *
  * @param array $resp
  *            GetHistogramsResponse HTTP response body
  * @param array $header
  *            GetHistogramsResponse HTTP response header
  */
 public function __construct($resp, $header)
 {
     parent::__construct($header);
     $this->progress = $resp['progress'];
     $this->count = $resp['count'];
     $this->histograms = array();
     foreach ($resp['histograms'] as $data) {
         $this->histograms[] = new Aliyun_Sls_Models_Histogram($data['from'], $data['to'], $data['count'], $data['progress']);
     }
 }
 /**
  * Aliyun_Sls_Models_GetLogsResponse constructor
  *
  * @param array $resp
  *            GetLogs HTTP response body
  * @param array $header
  *            GetLogs HTTP response header
  */
 public function __construct($resp, $header)
 {
     parent::__construct($header);
     $this->count = $resp['count'];
     $this->progress = $resp['progress'];
     $this->logs = array();
     foreach ($resp['logs'] as $data) {
         $contents = $data;
         $time = $data['__time__'];
         $source = $data['__source__'];
         unset($contents['__time__']);
         unset($contents['__source__']);
         $this->logs[] = new Aliyun_Sls_Models_QueriedLog($time, $source, $contents);
     }
 }
 /**
  * Aliyun_Sls_Models_PutLogsResponse constructor
  *
  * @param array $header
  *            PutLogs HTTP response header
  */
 public function __construct($headers)
 {
     parent::__construct($headers);
 }
 /**
  * Aliyun_Sls_Models_ListLogstoresResponse constructor
  *
  * @param array $resp
  *            ListLogstores HTTP response body
  * @param array $header
  *            ListLogstores HTTP response header
  */
 public function __construct($resp, $header)
 {
     parent::__construct($header);
     $this->count = $resp['count'];
     $this->logstores = $resp['logstores'];
 }