Inheritance: implements OSS\Model\XmlConfig
 /**
  * @return
  */
 protected function parseDataFromResponse()
 {
     $content = $this->rawResponse->body;
     $channelList = new GetLiveChannelHistory();
     $channelList->parseFromXml($content);
     return $channelList;
 }
 public function testLiveChannelHistory()
 {
     $history = new GetLiveChannelHistory();
     $history->parseFromXml($this->history);
     $recordList = $history->getLiveRecordList();
     $this->assertEquals(3, count($recordList));
     $list0 = $recordList[0];
     $this->assertEquals('2013-11-24T14:25:31.000Z', $list0->getStartTime());
     $this->assertEquals('2013-11-24T15:25:31.000Z', $list0->getEndTime());
     $this->assertEquals('10.101.194.148:56861', $list0->getRemoteAddr());
     $list1 = $recordList[1];
     $this->assertEquals('2014-11-24T14:25:31.000Z', $list1->getStartTime());
     $this->assertEquals('2014-11-24T15:25:31.000Z', $list1->getEndTime());
     $this->assertEquals('10.101.194.148:56862', $list1->getRemoteAddr());
     $list2 = $recordList[2];
     $this->assertEquals('2015-11-24T14:25:31.000Z', $list2->getStartTime());
     $this->assertEquals('2015-11-24T15:25:31.000Z', $list2->getEndTime());
     $this->assertEquals('10.101.194.148:56863', $list2->getRemoteAddr());
 }