Differential D12680 Diff 30538 src/infrastructure/daemon/bot/adapter/PhabricatorBotFlowdockProtocolAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/bot/adapter/PhabricatorBotFlowdockProtocolAdapter.php
| Show All 20 Lines | protected function buildStreamingUrl($channel) { | ||||
| $ssl = $this->getConfig('ssl'); | $ssl = $this->getConfig('ssl'); | ||||
| $url = ($ssl) ? 'https://' : 'http://'; | $url = ($ssl) ? 'https://' : 'http://'; | ||||
| $url .= "{$this->authtoken}@stream.flowdock.com"; | $url .= "{$this->authtoken}@stream.flowdock.com"; | ||||
| $url .= "/flows/{$organization}/{$channel}"; | $url .= "/flows/{$organization}/{$channel}"; | ||||
| return $url; | return $url; | ||||
| } | } | ||||
| protected function processMessage($m_obj) { | protected function processMessage(array $m_obj) { | ||||
| $command = null; | $command = null; | ||||
| switch ($m_obj['event']) { | switch ($m_obj['event']) { | ||||
| case 'message': | case 'message': | ||||
| $command = 'MESSAGE'; | $command = 'MESSAGE'; | ||||
| break; | break; | ||||
| default: | default: | ||||
| // For now, ignore anything which we don't otherwise know about. | // For now, ignore anything which we don't otherwise know about. | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 56 Lines • Show Last 20 Lines | |||||