Differential D12380 Diff 29771 src/applications/differential/conduit/DifferentialGetDiffConduitAPIMethod.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/conduit/DifferentialGetDiffConduitAPIMethod.php
Show All 20 Lines | final class DifferentialGetDiffConduitAPIMethod | ||||
} | } | ||||
public function getMethodDescription() { | public function getMethodDescription() { | ||||
return pht('Load the content of a diff from Differential by revision id '. | return pht('Load the content of a diff from Differential by revision id '. | ||||
'or diff id.'); | 'or diff id.'); | ||||
} | } | ||||
public function defineParamTypes() { | protected function defineParamTypes() { | ||||
return array( | return array( | ||||
'revision_id' => 'optional id', | 'revision_id' => 'optional id', | ||||
'diff_id' => 'optional id', | 'diff_id' => 'optional id', | ||||
); | ); | ||||
} | } | ||||
public function defineReturnType() { | protected function defineReturnType() { | ||||
return 'nonempty dict'; | return 'nonempty dict'; | ||||
} | } | ||||
public function defineErrorTypes() { | protected function defineErrorTypes() { | ||||
return array( | return array( | ||||
'ERR_BAD_DIFF' => 'No such diff exists.', | 'ERR_BAD_DIFF' => 'No such diff exists.', | ||||
); | ); | ||||
} | } | ||||
protected function execute(ConduitAPIRequest $request) { | protected function execute(ConduitAPIRequest $request) { | ||||
$diff_id = $request->getValue('diff_id'); | $diff_id = $request->getValue('diff_id'); | ||||
Show All 33 Lines |