Creating Courses

For creating a new Course, you will need a Course object, which will be send to Itslearning to be created.

CreateCourse

This function creates the given Course in Itslearning.

 

Syntax:

OperationResult warning = ImsEsClient.CreateCourse(Course newCourse);
Parameters:

newCourse:

The new Course to be created.

Returns:

The OperationResult containing the warning that Itslearning has send back, or if there was none, null.

 

Exceptions:

  • ImsEsException: If IMS-ES encountered an error in Itslearning, this exception will be thrown.
  • ValidationException: If the new Course is not valid (required fields not filled in or some other properties too long) this exception will be thrown.

 


CreateCourses

This function creates all the given Courses in Itslearning.

 

Syntax:

BatchOperationResult = ImsEsClient.CreateCourses(ICollection<Course> newCourses);
Parameters:

newCourses:

An ICollection with the new Courses to be created.

Returns:

A BatchOperationResult, with the list with warnings that Itslearning has send back (this list can be empty).

 

Exceptions:

  • ImsEsBatchException: If IMS-ES encountered an error in Itslearning, this exception will be thrown.
  • ValidationException: If one of the new Courses is not valid (required fields not filled in or some other properties too long) this exception will be thrown.