data class Author: Any
Fields
Name | Description |
---|---|
lateinit var group: ProjectGroup
|
is a ProjectGroup, representing the group that the author belongs to |
val id: Long
|
is a primary-key like generated value |
val name: String
|
is a String, representing the author's name |
val userId: String
|
is a String, representing the author's id (e.g. student number, teacher number) |
Constructors
<init>
constructor(name: String, number: String, group: ProjectGroup)
Creates an Author.
Parameters
Name | Description |
---|---|
name: String
|
is a String |
number: String
|
is a String |
group: ProjectGroup
|
is the ProjectGroup that the Author belongs to |
<init>
constructor(id: Long, name: String, userId: String)
Represents the author of a submission (a student or a teacher).
Parameters
Name | Description |
---|---|
id: Long
|
|
name: String
|
|
userId: String
|
Represents the author of a submission (a student or a teacher).