1 | <?php |
||
15 | class DiscussMessage extends Message |
||
16 | { |
||
17 | /** |
||
18 | * 接收用户编号,也是QQ号. |
||
19 | * |
||
20 | * @var int |
||
21 | */ |
||
22 | protected $toUin; |
||
23 | |||
24 | /** |
||
25 | * 讨论组编号. |
||
26 | * |
||
27 | * @var int |
||
28 | */ |
||
29 | protected $fromUin; |
||
30 | |||
31 | /** |
||
32 | * 讨论组编号,同fromUin |
||
33 | * PS: 对应影响中的did. |
||
34 | * |
||
35 | * @var int |
||
36 | */ |
||
37 | protected $discussId; |
||
38 | |||
39 | /** |
||
40 | * 发信用户编号,非QQ号. |
||
41 | * |
||
42 | * @var int |
||
43 | */ |
||
44 | protected $sendUin; |
||
45 | |||
46 | public function __construct($toUin, $fromUin, $discussId, $sendUin, Content $content, $time, $msgId = 0, $msgType = 0) |
||
54 | |||
55 | /** |
||
56 | * @param int $toUin |
||
57 | */ |
||
58 | public function setToUin($toUin) |
||
62 | |||
63 | /** |
||
64 | * @param int $fromUin |
||
65 | */ |
||
66 | public function setFromUin($fromUin) |
||
70 | |||
71 | /** |
||
72 | * @param int $discussId |
||
73 | */ |
||
74 | public function setDiscussId($discussId) |
||
78 | |||
79 | /** |
||
80 | * @param int $sendUin |
||
81 | */ |
||
82 | public function setSendUin($sendUin) |
||
86 | |||
87 | /** |
||
88 | * @return int |
||
89 | */ |
||
90 | public function getToUin() |
||
94 | |||
95 | /** |
||
96 | * @return int |
||
97 | */ |
||
98 | public function getFromUin() |
||
102 | |||
103 | /** |
||
104 | * @return int |
||
105 | */ |
||
106 | public function getDiscussId() |
||
110 | |||
111 | /** |
||
112 | * @return int |
||
113 | */ |
||
114 | public function getSendUin() |
||
118 | } |
||
119 |