123456789101112131415161718192021222324252627282930 |
- <?php
- namespace Easemob\Agora;
- /**
- * @ignore
- */
- class ServiceChat extends Service
- {
- const SERVICE_TYPE = 5;
- const PRIVILEGE_USER = 1;
- const PRIVILEGE_APP = 2;
- 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);
- }
- }
|