added booking class

This commit is contained in:
IvanaE 2018-11-18 11:48:03 -05:00
parent 1ba91f5cde
commit 2f7d8feec3
2 changed files with 101 additions and 1 deletions

View file

@ -25,7 +25,7 @@
</value>
</option>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="true" project-jdk-name="1.8" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" />
</component>
<component name="ProjectType">

View file

@ -0,0 +1,100 @@
package com.uottawa.olympus.olympusservices;
public class Booking {
private int starth;
private int startmin;
private int endh;
private int endmin;
private int day;
private int month;
private int year;
private String serviceprovider; //username
private String homeowner; //username
public enum Status {
PENDING, CONFIRMED, CANCELLED
}
int rating; //out of 5
public int getStarth() {
return starth;
}
public void setStarth(int starth) {
this.starth = starth;
}
public int getStartmin() {
return startmin;
}
public void setStartmin(int startmin) {
this.startmin = startmin;
}
public int getEndh() {
return endh;
}
public void setEndh(int endh) {
this.endh = endh;
}
public int getEndmin() {
return endmin;
}
public void setEndmin(int endmin) {
this.endmin = endmin;
}
public int getDay() {
return day;
}
public void setDay(int day) {
this.day = day;
}
public int getMonth() {
return month;
}
public void setMonth(int month) {
this.month = month;
}
public int getYear() {
return year;
}
public void setYear(int year) {
this.year = year;
}
public String getServiceprovider() {
return serviceprovider;
}
public void setServiceprovider(String serviceprovider) {
this.serviceprovider = serviceprovider;
}
public String getHomeowner() {
return homeowner;
}
public void setHomeowner(String homeowner) {
this.homeowner = homeowner;
}
public int getRating() {
return rating;
}
public void setRating(int rating) {
this.rating = rating;
}
}