Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
MOBILE-873 emulator: Format json strings
Browse files Browse the repository at this point in the history
  • Loading branch information
jleyva committed Jan 15, 2015
1 parent 0a833a8 commit c01bbc4
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 4 deletions.
127 changes: 126 additions & 1 deletion emulator/core_calendar_get_calendar_events.json
Original file line number Diff line number Diff line change
@@ -1 +1,126 @@
{"events":[{"id":9748,"name":"Mountain MoodleMoot","description":"<p>July 9-11, 2014 - Helena, Montana <img src=\"@@PLUGINFILE@@\/mmlogo200.png\" alt=\"Mountain MoodleMoot\" style=\"float: right;\" height=\"210\" width=\"200\" \/><\/p>\r\n<p>A small personable Moodle Moot in the heart of the Rockies<\/p>\r\n<p>Further information: <a href=\"http:\/\/www.mountainmoot.com\/\">www.mountainmoot.com<\/a><\/p>\r\n<p>Tag: #mtmoot<\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"Forum","courseName": "Moots course", "instance":0,"eventtype":"course","timestart":1404916200,"timeduration":7200,"visible":1,"uuid":"","sequence":1,"timemodified":1390900746,"subscriptionid":null},{"id":9983,"name":"Moodle 2.7.1 scheduled release","description":"<p>&nbsp;\r\nMoodle 2.7.1, Moodle 2.6.4 and Moodle 2.5.7 are scheduled to be released on this date.<\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"0","instance":0,"eventtype":"site","timestart":1405372800,"timeduration":0,"visible":1,"uuid":"","sequence":1,"timemodified":1399930008,"subscriptionid":null},{"id":9867,"name":"Moodle Moot Colombia 2014","description":"<p>31 July - 1 August 2014<\/p>\r\n<p>Location: Bogota Colombia<\/p>\r\n<p>Further information: <a href=\"http:\/\/www.moodlemoot.org.co\/\">www.moodlemoot.org.co<\/a><\/p>\r\n<p>Tag: #mootco14<\/p>\r\n<p><\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"0","instance":0,"eventtype":"site","timestart":1406815200,"timeduration":115200,"visible":1,"uuid":"","sequence":1,"timemodified":1397212617,"subscriptionid":null},{"id":9719,"name":"MoodleMoot Romania 2014","description":"<p>18 - 23 August 2014<\/p>\r\n<p>Location: Cluj-Napoca, Romania<\/p>\r\n<p>Further information: <a href=\"http:\/\/www.moodle.ro\/moot2014\">www.moodle.ro\/moot2014<\/a><\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"0","instance":0,"eventtype":"site","timestart":1408345200,"timeduration":460800,"visible":1,"uuid":"","sequence":1,"timemodified":1389259729,"subscriptionid":null},{"id":9984,"name":"Moodle 2.7.2 scheduled release","description":"<p>Moodle 2.7.2, Moodle 2.6.5 and Moodle 2.5.8 are scheduled to be released on this date.<\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"0","instance":0,"eventtype":"site","timestart":1410211500,"timeduration":0,"visible":1,"uuid":"","sequence":1,"timemodified":1399930088,"subscriptionid":null},{"id":9957,"name":"MoodleMoot NZ14","description":"<p>Wednesday 1st October to Friday 3rd October 2014<\/p>\r\n<p>Location:<span class=\"nolink\"> Nelson, New Zealand<br \/><\/span><\/p>\r\n<p><span class=\"nolink\">Further information: <a href=\"http:\/\/www.moodlemoot.co.nz\/\">www.moodlemoot.co.nz<\/a><br \/><\/span><\/p>\r\n<p><span class=\"nolink\">Tag: #mootnz14<\/span><\/p>","format":1,"courseid":1,"groupid":0,"userid":24152,"repeatid":0,"modulename":"0","instance":0,"eventtype":"site","timestart":1412107200,"timeduration":201600,"visible":1,"uuid":"","sequence":1,"timemodified":1399405922,"subscriptionid":null}],"warnings":[]}
{
"events": [
{
"id": 9748,
"name": "Mountain MoodleMoot",
"description": "<p>July 9-11, 2014 - Helena, Montana <img src=\"@@PLUGINFILE@@/mmlogo200.png\" alt=\"Mountain MoodleMoot\" style=\"float: right;\" height=\"210\" width=\"200\" /></p>\r\n<p>A small personable Moodle Moot in the heart of the Rockies</p>\r\n<p>Further information: <a href=\"http://www.mountainmoot.com/\">www.mountainmoot.com</a></p>\r\n<p>Tag: #mtmoot</p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "Forum",
"courseName": "Moots course",
"instance": 0,
"eventtype": "course",
"timestart": 1404916200,
"timeduration": 7200,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1390900746,
"subscriptionid": null
},
{
"id": 9983,
"name": "Moodle 2.7.1 scheduled release",
"description": "<p>&nbsp;\r\nMoodle 2.7.1, Moodle 2.6.4 and Moodle 2.5.7 are scheduled to be released on this date.</p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "0",
"instance": 0,
"eventtype": "site",
"timestart": 1405372800,
"timeduration": 0,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1399930008,
"subscriptionid": null
},
{
"id": 9867,
"name": "Moodle Moot Colombia 2014",
"description": "<p>31 July - 1 August 2014</p>\r\n<p>Location: Bogota Colombia</p>\r\n<p>Further information: <a href=\"http://www.moodlemoot.org.co/\">www.moodlemoot.org.co</a></p>\r\n<p>Tag: #mootco14</p>\r\n<p></p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "0",
"instance": 0,
"eventtype": "site",
"timestart": 1406815200,
"timeduration": 115200,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1397212617,
"subscriptionid": null
},
{
"id": 9719,
"name": "MoodleMoot Romania 2014",
"description": "<p>18 - 23 August 2014</p>\r\n<p>Location: Cluj-Napoca, Romania</p>\r\n<p>Further information: <a href=\"http://www.moodle.ro/moot2014\">www.moodle.ro/moot2014</a></p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "0",
"instance": 0,
"eventtype": "site",
"timestart": 1408345200,
"timeduration": 460800,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1389259729,
"subscriptionid": null
},
{
"id": 9984,
"name": "Moodle 2.7.2 scheduled release",
"description": "<p>Moodle 2.7.2, Moodle 2.6.5 and Moodle 2.5.8 are scheduled to be released on this date.</p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "0",
"instance": 0,
"eventtype": "site",
"timestart": 1410211500,
"timeduration": 0,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1399930088,
"subscriptionid": null
},
{
"id": 9957,
"name": "MoodleMoot NZ14",
"description": "<p>Wednesday 1st October to Friday 3rd October 2014</p>\r\n<p>Location:<span class=\"nolink\"> Nelson, New Zealand<br /></span></p>\r\n<p><span class=\"nolink\">Further information: <a href=\"http://www.moodlemoot.co.nz/\">www.moodlemoot.co.nz</a><br /></span></p>\r\n<p><span class=\"nolink\">Tag: #mootnz14</span></p>",
"format": 1,
"courseid": 1,
"groupid": 0,
"userid": 24152,
"repeatid": 0,
"modulename": "0",
"instance": 0,
"eventtype": "site",
"timestart": 1412107200,
"timeduration": 201600,
"visible": 1,
"uuid": "",
"sequence": 1,
"timemodified": 1399405922,
"subscriptionid": null
}
],
"warnings": []
}
56 changes: 55 additions & 1 deletion emulator/local_mobile_core_files_get_files.json
Original file line number Diff line number Diff line change
@@ -1 +1,55 @@
{"parents":[{"contextid":1,"component":null,"filearea":null,"itemid":null,"filepath":null,"filename":"System"},{"contextid":62,"component":null,"filearea":null,"itemid":null,"filepath":null,"filename":"Terry Teacher"}],"files":[{"contextid":62,"component":"user","filearea":"private","itemid":0,"filepath":"\/Private folder 1 \u00f1\/","filename":"Private folder 1 \u00f1","isdir":true,"url":null,"timemodified":1406807749},{"contextid":62,"component":"user","filearea":"private","itemid":0,"filepath":"\/Private folder 2\/","filename":"Private folder 2","isdir":true,"url":null,"timemodified":1406807749},{"contextid":62,"component":"user","filearea":"private","itemid":0,"filepath":"\/","filename":"Ray.jpg","isdir":false,"url":"http:\/\/localhost\/m\/stable_24\/pluginfile.php\/62\/user\/private\/Ray.jpg","timemodified":1406807749}]}
{
"parents": [
{
"contextid": 1,
"component": null,
"filearea": null,
"itemid": null,
"filepath": null,
"filename": "System"
},
{
"contextid": 62,
"component": null,
"filearea": null,
"itemid": null,
"filepath": null,
"filename": "Terry Teacher"
}
],
"files": [
{
"contextid": 62,
"component": "user",
"filearea": "private",
"itemid": 0,
"filepath": "/Private folder 1 ñ/",
"filename": "Private folder 1 ñ",
"isdir": true,
"url": null,
"timemodified": 1406807749
},
{
"contextid": 62,
"component": "user",
"filearea": "private",
"itemid": 0,
"filepath": "/Private folder 2/",
"filename": "Private folder 2",
"isdir": true,
"url": null,
"timemodified": 1406807749
},
{
"contextid": 62,
"component": "user",
"filearea": "private",
"itemid": 0,
"filepath": "/",
"filename": "Ray.jpg",
"isdir": false,
"url": "http://localhost/m/stable_24/pluginfile.php/62/user/private/Ray.jpg",
"timemodified": 1406807749
}
]
}
34 changes: 33 additions & 1 deletion emulator/local_mobile_core_grades_get_grades.json
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
{"items":[{"activityid":"4","itemnumber":0,"scaleid":0,"name":"Cuestionario sencillo","grademin":0,"grademax":10,"gradepass":0,"locked":false,"hidden":false,"grades":[{"userid":3,"grade":7,"locked":false,"hidden":false,"overridden":false,"feedback":null,"feedbackformat":0,"usermodified":3,"datesubmitted":1404987241,"dategraded":1404987241,"str_grade":"7.00","str_long_grade":"7.00 \/ 10.00","str_feedback":""}]}],"outcomes":[]}
{
"items": [
{
"activityid": "4",
"itemnumber": 0,
"scaleid": 0,
"name": "Cuestionario sencillo",
"grademin": 0,
"grademax": 10,
"gradepass": 0,
"locked": false,
"hidden": false,
"grades": [
{
"userid": 3,
"grade": 7,
"locked": false,
"hidden": false,
"overridden": false,
"feedback": null,
"feedbackformat": 0,
"usermodified": 3,
"datesubmitted": 1404987241,
"dategraded": 1404987241,
"str_grade": "7.00",
"str_long_grade": "7.00 / 10.00",
"str_feedback": ""
}
]
}
],
"outcomes": []
}
19 changes: 18 additions & 1 deletion emulator/moodle_enrol_get_users_courses.json
Original file line number Diff line number Diff line change
@@ -1 +1,18 @@
[{"id":3,"shortname":"TestGrades","fullname":"Test course for grades","enrolledusercount":2,"idnumber":"","visible":1},{"id":2,"shortname":"Moodle Mountain","fullname":"Basic Moodle and Mountaineering","enrolledusercount":2,"idnumber":"","visible":1}]
[
{
"id": 3,
"shortname": "TestGrades",
"fullname": "Test course for grades",
"enrolledusercount": 2,
"idnumber": "",
"visible": 1
},
{
"id": 2,
"shortname": "Moodle Mountain",
"fullname": "Basic Moodle and Mountaineering",
"enrolledusercount": 2,
"idnumber": "",
"visible": 1
}
]

0 comments on commit c01bbc4

Please sign in to comment.