1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <?php
- namespace huo\controller\queue;
- use huo\controller\request\Channel;
- use huo\controller\request\Device;
- use huo\controller\request\Game;
- use huo\controller\request\Mem as MemRq;
- use huolib\queue\constant\EventConst;
- class Mem extends SdkQueue {
-
- public function create(Device $device_rq, Game $game_rq, Channel $agent_rq, MemRq $mem_rq) {
- $this->param['event'] = EventConst::EVENT_MEM_REG;
- $this->setParamDevice($device_rq);
- $this->setParamGame($game_rq);
- $this->setParamChannel($agent_rq);
- $this->setParamMem($mem_rq);
- $this->param['ts'] = $mem_rq->getRegTime();
- return $this->pushQueue();
- }
-
- public function online(Device $device_rq, Game $game_rq, Channel $agent_rq, MemRq $mem_rq) {
- $this->param['event'] = EventConst::EVENT_MEM_LOGIN;
- $this->setParamDevice($device_rq);
- $this->setParamGame($game_rq);
- $this->setParamChannel($agent_rq);
- $this->setParamMem($mem_rq);
- $this->param['ts'] = $mem_rq->getLoginTime();
- return $this->pushQueue();
- }
-
- public function offline(Device $device_rq, Game $game_rq, Channel $agent_rq, MemRq $mem_rq) {
- $this->param['event'] = EventConst::EVENT_MEM_LOGOUT;
- $this->setParamDevice($device_rq);
- $this->setParamGame($game_rq);
- $this->setParamChannel($agent_rq);
- $this->setParamMem($mem_rq);
- return $this->pushQueue();
- }
- }
|