-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Visit Object class using class method and included get and se…
…t methods
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
class Visit{ | ||
//ASSUMPTION: usermail and eventID are checked and existing. | ||
constructor(TicketID, UserEmail, EventID, Reason) { | ||
this.TicketID = TicketID; //TicketID to be autogenerated | ||
this.UserEmail = UserEmail; //should have a match in User class | ||
this.EventID = EventID; //should have a match in Event class | ||
this.reason = Reason | ||
} | ||
getUserEmail() { | ||
return this.UserEmail; | ||
} | ||
|
||
getTicketID() { | ||
return this.TicketID; | ||
} | ||
|
||
getEventID() { | ||
return this.EventID; | ||
} | ||
|
||
getReason() { | ||
return this.reason; | ||
} | ||
|
||
setTicketID(newTicketID) { | ||
this.TicketID = newTicketID; | ||
} | ||
|
||
setReason(newReason) { | ||
this.reason = newReason; | ||
} | ||
} |