// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (CoursePublicApi == null) var CoursePublicApi = {}; CoursePublicApi._path = '/dwr'; CoursePublicApi.getLoggedInUid = function(callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getLoggedInUid', callback); } CoursePublicApi.populateStudent = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'populateStudent', p0, callback); } CoursePublicApi.enrollOnCourse = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'enrollOnCourse', p0, callback); } CoursePublicApi.updateStudentCompletionInfo = function(p0, p1, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'updateStudentCompletionInfo', p0, p1, callback); } CoursePublicApi.isLoggedIn = function(callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'isLoggedIn', callback); } CoursePublicApi.getLoggedInStudent = function(callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getLoggedInStudent', callback); } CoursePublicApi.getEnrollmentByCourseId = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getEnrollmentByCourseId', p0, callback); } CoursePublicApi.getAllCourseAndEnrollmentInfo = function(callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getAllCourseAndEnrollmentInfo', callback); } CoursePublicApi.getCourseInfo = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getCourseInfo', p0, callback); } CoursePublicApi.updateLessonAndGetCourseInfo = function(p0, p1, p2, p3, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'updateLessonAndGetCourseInfo', p0, p1, p2, p3, callback); } CoursePublicApi.getCourseById = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getCourseById', p0, callback); } CoursePublicApi.setSessionLocale = function(p0, callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'setSessionLocale', p0, callback); } CoursePublicApi.getSessionLocale = function(callback) { dwr.engine._execute(CoursePublicApi._path, 'CoursePublicApi', 'getSessionLocale', callback); }