-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Openstud: Add support for classroom's details and classroom's timetable
- Loading branch information
Showing
3 changed files
with
284 additions
and
14 deletions.
There are no files selected for viewing
110 changes: 110 additions & 0 deletions
110
src/main/java/lithium/openstud/driver/core/Classroom.java
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,110 @@ | ||
package lithium.openstud.driver.core; | ||
|
||
public class Classroom { | ||
private double latitude; | ||
private double longitude; | ||
private String where; | ||
private String name; | ||
private String fullName; | ||
private int internalId; | ||
private String roomId; | ||
private boolean occupied; | ||
private boolean willBeOccupied; | ||
private int weight; | ||
|
||
public double getLatitude() { | ||
return latitude; | ||
} | ||
|
||
public void setLatitude(double latitude) { | ||
this.latitude = latitude; | ||
} | ||
|
||
public double getLongitude() { | ||
return longitude; | ||
} | ||
|
||
public void setLongitude(double longitude) { | ||
this.longitude = longitude; | ||
} | ||
|
||
public String getWhere() { | ||
return where; | ||
} | ||
|
||
public void setWhere(String where) { | ||
this.where = where; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
|
||
public void setName(String name) { | ||
this.name = name; | ||
} | ||
|
||
public String getFullName() { | ||
return fullName; | ||
} | ||
|
||
public void setFullName(String fullName) { | ||
this.fullName = fullName; | ||
} | ||
|
||
public int getInternalId() { | ||
return internalId; | ||
} | ||
|
||
public void setInternalId(int internalId) { | ||
this.internalId = internalId; | ||
} | ||
|
||
public String getRoomId() { | ||
return roomId; | ||
} | ||
|
||
public void setRoomId(String roomId) { | ||
this.roomId = roomId; | ||
} | ||
|
||
public boolean isOccupied() { | ||
return occupied; | ||
} | ||
|
||
public void setOccupied(boolean occupied) { | ||
this.occupied = occupied; | ||
} | ||
|
||
public boolean isWillBeOccupied() { | ||
return willBeOccupied; | ||
} | ||
|
||
public void setWillBeOccupied(boolean willBeOccupied) { | ||
this.willBeOccupied = willBeOccupied; | ||
} | ||
|
||
public int getWeight() { | ||
return weight; | ||
} | ||
|
||
public void setWeight(int weight) { | ||
this.weight = weight; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "Classroom{" + | ||
"latitude=" + latitude + | ||
", longitude=" + longitude + | ||
", where='" + where + '\'' + | ||
", name='" + name + '\'' + | ||
", fullName='" + fullName + '\'' + | ||
", internalId=" + internalId + | ||
", roomId='" + roomId + '\'' + | ||
", occupied=" + occupied + | ||
", willBeOccupied=" + willBeOccupied + | ||
", weight=" + weight + | ||
'}'; | ||
} | ||
} |
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
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