Class Session
java.lang.Object
Session
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets date of the sessiondouble
Gets the hourly rateGets the meeting notesboolean
Gets whether the session is paid for or notdouble
Gets the hours of this sessiongetTutor()
Get tutor assigned to the sessionvoid
paid()
Sets the session's paid status to true.void
setDateOfSession(String date)
void
setHourlyRate(double hourlyRate)
Sets the hourly rate hourly rate passed in must be a valid double in dollars per hour.void
setMeetingNotes(String note)
Sets the meeting notes note passed in must be a valid String
-
Field Details
-
Constructor Details
-
Method Details
-
getDateOfSession
Gets date of the session- Returns:
- date
-
getSessionHours
public double getSessionHours()Gets the hours of this session- Returns:
- hours
-
getMeetingNotes
Gets the meeting notes- Returns:
- Meeting notes
-
getHourlyRate
public double getHourlyRate()Gets the hourly rate- Returns:
- dollars per hour
-
getTutor
Get tutor assigned to the session- Returns:
- tutor
-
getPayStatus
public boolean getPayStatus()Gets whether the session is paid for or not- Returns:
- boolean
-
setDateOfSession
- Parameters:
dateOfSession
- set to date (String)MeetingNotes
- set to note (String)HourlyRate
- set to hourlyRate (double)
-
setMeetingNotes
Sets the meeting notes note passed in must be a valid String- Parameters:
note
-
-
setHourlyRate
public void setHourlyRate(double hourlyRate)Sets the hourly rate hourly rate passed in must be a valid double in dollars per hour.- Parameters:
hourlyRate
-
-
paid
public void paid()Sets the session's paid status to true.
-