1234567891011121314151617181920212223242526272829 |
- <?php
- namespace Easemob\Agora;
- /**
- * @ignore
- */
- class ServiceRtm extends Service
- {
- const SERVICE_TYPE = 2;
- const PRIVILEGE_LOGIN = 1;
- public $userId;
- public function __construct($userId = "")
- {
- parent::__construct(self::SERVICE_TYPE);
- $this->userId = $userId;
- }
- public function pack()
- {
- return parent::pack() . Util::packString($this->userId);
- }
- public function unpack(&$data)
- {
- parent::unpack($data);
- $this->userId = Util::unpackString($data);
- }
- }
|