heyuntao
2023-06-09 3b7af15b742ab218d0f18809f292270881747b94
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?php
 
namespace OSS\Model;
/**
 * Class LiveChannelHistory
 * @package OSS\Model
 *
 */
class LiveChannelHistory implements XmlConfig
{
    public function __construct()
    {
    }
 
    public function getStartTime()
    {
        return $this->startTime;
    }
 
    public function getEndTime()
    {
        return $this->endTime;
    }
 
    public function getRemoteAddr()
    {
        return $this->remoteAddr;
    }
 
    public function parseFromXmlNode($xml)
    {
        if (isset($xml->StartTime)) {
            $this->startTime = strval($xml->StartTime);
        }
 
        if (isset($xml->EndTime)) {
            $this->endTime = strval($xml->EndTime);
        }
 
        if (isset($xml->RemoteAddr)) {
            $this->remoteAddr = strval($xml->RemoteAddr);
        }
    }
 
    public function parseFromXml($strXml)
    {
        $xml = simplexml_load_string($strXml);
        $this->parseFromXmlNode($xml);
    }
 
    public function serializeToXml()
    {
        throw new OssException("Not implemented.");
    }
    
    private $startTime;
    private $endTime;
    private $remoteAddr;
}