| 1 | <?php |
||
| 13 | class Recent |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * 好友会话. |
||
| 17 | * |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | const TYPE_FRIEND = 0; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * 群会话. |
||
| 24 | * |
||
| 25 | * @var int |
||
| 26 | */ |
||
| 27 | const TYPE_GROUP = 1; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * 讨论组会话. |
||
| 31 | * |
||
| 32 | * @var int |
||
| 33 | */ |
||
| 34 | const TYPE_DISCUSS = 2; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * 会话类型. |
||
| 38 | * |
||
| 39 | * @var int |
||
| 40 | */ |
||
| 41 | protected $type; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * 对方编号. |
||
| 45 | * |
||
| 46 | * @var int |
||
| 47 | */ |
||
| 48 | protected $uin; |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return int |
||
| 52 | */ |
||
| 53 | public function getType() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param int $type |
||
| 60 | */ |
||
| 61 | public function setType($type) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return int |
||
| 68 | */ |
||
| 69 | public function getUin() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param int $uin |
||
| 76 | */ |
||
| 77 | public function setUin($uin) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * 是否是好友会话. |
||
| 84 | * |
||
| 85 | * @return bool |
||
| 86 | */ |
||
| 87 | public function isFriendType() |
||
| 91 | |||
| 92 | /** |
||
| 93 | * 是否是群会话. |
||
| 94 | * |
||
| 95 | * @return bool |
||
| 96 | */ |
||
| 97 | public function isGroupType() |
||
| 101 | |||
| 102 | /** |
||
| 103 | * 是否是讨论组会话. |
||
| 104 | * |
||
| 105 | * @return bool |
||
| 106 | */ |
||
| 107 | public function isDiscussType() |
||
| 111 | } |
||
| 112 |