Differential D12380 Diff 29771 src/applications/conpherence/conduit/ConpherenceCreateThreadConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/conduit/ConpherenceCreateThreadConduitAPIMethod.php
<?php | <?php | ||||
final class ConpherenceCreateThreadConduitAPIMethod | final class ConpherenceCreateThreadConduitAPIMethod | ||||
extends ConpherenceConduitAPIMethod { | extends ConpherenceConduitAPIMethod { | ||||
public function getAPIMethodName() { | public function getAPIMethodName() { | ||||
return 'conpherence.createthread'; | return 'conpherence.createthread'; | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Create a new conpherence thread.'); | return pht('Create a new conpherence thread.'); | ||||
} | } | ||||
public function defineParamTypes() { | protected 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() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected 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.'), | ||||
); | ); | ||||
} | } | ||||
Show All 33 Lines |