Differential D12680 Diff 30538 src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/daemon/bot/adapter/PhabricatorCampfireProtocolAdapter.php
| Show All 10 Lines | protected function buildStreamingUrl($channel) { | ||||
| $ssl = $this->getConfig('ssl'); | $ssl = $this->getConfig('ssl'); | ||||
| $url = ($ssl) ? 'https://' : 'http://'; | $url = ($ssl) ? 'https://' : 'http://'; | ||||
| $url .= "streaming.campfirenow.com/room/{$channel}/live.json"; | $url .= "streaming.campfirenow.com/room/{$channel}/live.json"; | ||||
| return $url; | return $url; | ||||
| } | } | ||||
| protected function processMessage($m_obj) { | protected function processMessage(array $m_obj) { | ||||
| $command = null; | $command = null; | ||||
| switch ($m_obj['type']) { | switch ($m_obj['type']) { | ||||
| case 'TextMessage': | case 'TextMessage': | ||||
| $command = 'MESSAGE'; | $command = 'MESSAGE'; | ||||
| break; | break; | ||||
| case 'PasteMessage': | case 'PasteMessage': | ||||
| $command = 'PASTE'; | $command = 'PASTE'; | ||||
| break; | break; | ||||
| ▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines | |||||