Skip to content

Commit

Permalink
Updated Visit Object class using class method and included get and se…
Browse files Browse the repository at this point in the history
…t methods
  • Loading branch information
JeanKoh committed Feb 16, 2017
1 parent 08ab249 commit ca61a55
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions app/database/objectClasses/Visit.js
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;
}
}

0 comments on commit ca61a55

Please sign in to comment.