CourseUnitDto

public class CourseUnitDto

Class used to provide data about structure of courses, chapters, lessons and quizzes. It is used by the tree view.

See also: org.motechproject.mtraining.web.TreeViewController

Constructors

CourseUnitDto

public CourseUnitDto()

CourseUnitDto

public CourseUnitDto(long id, String name, String state, List<CourseUnitDto> units, String type)

Constructor with all arguments.

Parameters:
  • id – the id of the unit
  • name – the name of the unit
  • state – the status of the unit
  • units – the list of the lover level units
  • type – the type of the unit

Methods

getId

public long getId()

getName

public String getName()

getState

public String getState()

getType

public String getType()

getUnits

public List<CourseUnitDto> getUnits()

setId

public void setId(long id)

setName

public void setName(String name)

setState

public void setState(String state)

setType

public void setType(String type)

setUnits

public void setUnits(List<CourseUnitDto> units)