app / sg.edu.ntu.scse.cz2006.gymbuddies.datastruct / User / PrefDays

PrefDays

data class PrefDays

Inner class to store preferred days of the user

Author
Kenneth Soh

Since
2019-09-16

Constructors

<init>

Part of the User object. See that for more information

PrefDays(list: ArrayList<Int>)
PrefDays(monday: Boolean = false, tuesday: Boolean = false, wednesday: Boolean = false, thursday: Boolean = false, friday: Boolean = false, saturday: Boolean = false, sunday: Boolean = false)

Properties

friday

Boolean Preferred State for Friday. True if preferred, false otherwise

var friday: Boolean

monday

Boolean Preferred State for Monday. True if preferred, false otherwise

var monday: Boolean

saturday

Boolean Preferred State for Saturday. True if preferred, false otherwise

var saturday: Boolean

sunday

Boolean Preferred State for Sunday. True if preferred, false otherwise

var sunday: Boolean

thursday

Boolean Preferred State for Thursday. True if preferred, false otherwise

var thursday: Boolean

tuesday

Boolean Preferred State for Tuesday. True if preferred, false otherwise

var tuesday: Boolean

wednesday

Boolean Preferred State for Wednesday. True if preferred, false otherwise

var wednesday: Boolean

Functions

getDays

Gets the list of days preferred by the user

fun getDays(): ArrayList<Int>

getDaysCSV

Gets the days preferred by the user in a CSV format

fun getDaysCSV(): String