app / com.otago.open / CourseItem

CourseItem

data class CourseItem

Data Class for the Course items in the SelectFragment

Parameters

imageResource - The image from the project to use

courseName - The name of the course

courseUrl - The (probable) url to the course web-page, e.g. https://cs.otago.ac.nz/cosc345

courseCode - The paper code for the given course

selected - Whether the paper should appear selected in the course list

Constructors

<init>

Data Class for the Course items in the SelectFragment

CourseItem(imageResource: Int, courseName: String, courseUrl: String, courseCode: String, selected: Boolean)

Properties

courseCode

The paper code for the given course

val courseCode: String

courseName

The name of the course

val courseName: String

courseUrl

The (probable) url to the course web-page, e.g. https://cs.otago.ac.nz/cosc345

val courseUrl: String

imageResource

The image from the project to use

val imageResource: Int

selected

Whether the paper should appear selected in the course list

var selected: Boolean