Merge branch 'development' of git@git.bfh.ch:staff/due1/sed-hs15-srs-purple.git into...
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / Reservation.java
1 /*
2 * Copyright (c) 2015 Berner Fachhochschule, Switzerland.
3 *
4 * Project Smart Reservation System.
5 *
6 * Distributable under GPL license. See terms of license at gnu.org.
7 */
8 package ch.bfh.ti.srs.dataschema;
9
10 import ch.bfh.ti.daterange.DateRange;
11
12 public class Reservation {
13
14 private String name;
15 private User user;
16 private Resource resource;
17 private DateRange dateRange;
18
19 public Reservation(String name, User user, Resource resource, DateRange DateRange) {
20 this.name = name;
21 this.user = user;
22 this.resource = resource;
23 this.dateRange = DateRange;
24 }
25
26 public String getName() {
27 return name;
28 }
29
30 public User getUser() {
31 return user;
32 }
33
34 public Resource getResource() {
35 return resource;
36 }
37
38 public DateRange getDateRange() {
39 return dateRange;
40 }
41
42 public void setName(String name) {
43 this.name = name;
44 }
45
46 public void setUser(User user) {
47 this.user = user;
48 }
49
50 public void setResource(Resource resource) {
51 this.resource = resource;
52 }
53
54 public void setDateRange(DateRange dateRange) {
55 this.dateRange = dateRange;
56 }
57 }