MDL-64165 core_message: fixed contact requests web service structure

This commit is contained in:
Mark Nelson
2018-11-22 14:51:59 +08:00
parent 34b940f682
commit 2be9a4aecb
+4 -4
View File
@@ -1107,10 +1107,10 @@ class core_message_external extends external_api {
$result['contactrequests'] = new external_multiple_structure(
new external_single_structure(
[
'id' => new external_value(PARAM_INT, 'The id of the message'),
'userid' => new external_value(PARAM_INT, 'The id of the user who sent the message'),
'requesteduserid' => new external_value(PARAM_RAW, 'The text of the message'),
'timecreated' => new external_value(PARAM_INT, 'The timecreated timestamp for the message'),
'id' => new external_value(PARAM_INT, 'The id of the contact request'),
'userid' => new external_value(PARAM_INT, 'The id of the user who created the contact request'),
'requesteduserid' => new external_value(PARAM_INT, 'The id of the user confirming the request'),
'timecreated' => new external_value(PARAM_INT, 'The timecreated timestamp for the contact request'),
]
), 'The contact requests', VALUE_OPTIONAL
);