Differential D10585 Diff 25583 src/applications/conpherence/conduit/ConpherenceCreateThreadConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/conduit/ConpherenceCreateThreadConduitAPIMethod.php
| Show All 9 Lines | final class ConpherenceCreateThreadConduitAPIMethod | ||||
| public function getMethodDescription() { | public function getMethodDescription() { | ||||
| return pht('Create a new conpherence thread.'); | return pht('Create a new conpherence thread.'); | ||||
| } | } | ||||
| public function defineParamTypes() { | public function defineParamTypes() { | ||||
| return array( | return array( | ||||
| 'title' => 'optional string', | 'title' => 'optional string', | ||||
| 'message' => 'required string', | 'message' => 'required string', | ||||
| 'participantPHIDs' => 'required list<phids>' | 'participantPHIDs' => 'required list<phids>', | ||||
| ); | ); | ||||
| } | } | ||||
| public function defineReturnType() { | public function defineReturnType() { | ||||
| return 'nonempty dict'; | return 'nonempty dict'; | ||||
| } | } | ||||
| public function defineErrorTypes() { | public function defineErrorTypes() { | ||||
| return array( | return array( | ||||
| 'ERR_EMPTY_PARTICIPANT_PHIDS' => pht( | 'ERR_EMPTY_PARTICIPANT_PHIDS' => pht( | ||||
| 'You must specify participant phids.'), | 'You must specify participant phids.'), | ||||
| 'ERR_EMPTY_MESSAGE' => pht( | 'ERR_EMPTY_MESSAGE' => pht( | ||||
| 'You must specify a message.') | 'You must specify a message.'), | ||||
| ); | ); | ||||
| } | } | ||||
| protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
| $participant_phids = $request->getValue('participantPHIDs', array()); | $participant_phids = $request->getValue('participantPHIDs', array()); | ||||
| $message = $request->getValue('message'); | $message = $request->getValue('message'); | ||||
| $title = $request->getValue('title'); | $title = $request->getValue('title'); | ||||
| Show All 28 Lines | |||||