This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sealed class AttendanceRelationship(val status: String) { | |
class Present : AttendanceRelationship("Present") | |
class Absent : AttendanceRelationship("Absent") | |
class WeeklyOff : AttendanceRelationship("Weekly off") | |
companion object { | |
fun create(int: Int): AttendanceRelationship { | |
return when (RelationshipType.valueOf(int)) { |