-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEvents.java
75 lines (71 loc) · 1.19 KB
/
Events.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
package main;
/**
* class to create events
*/
public class Events {
//instance variables
private String name;
private String url;
private String description;
private String id;
private String status;
/**
* Constructs an Events object using name, url, description, id, and status
* @param name
* @param url
* @param description
* @param id
* @param status
*/
public Events(String name, String url, String description, String id,String status) {
this.name=name;
this.url=url;
this.description=description;
this.id=id;
this.status=status;
}
/**
* Constructs an events object with name and url as parameters
* @param name
* @param url
*/
public Events(String name, String url) {
this.name=name;
this.url=url;
}
/**
* return the name of the event
* @return name
*/
public String getName() {
return name;
}
/**
* get url link of the event
* @return url
*/
public String getUrl() {
return url;
}
/**
* get event description
* @return event description
*/
public String getDescription() {
return description;
}
/**
* get ID of event
* @return ID
*/
public String getId() {
return id;
}
/**
* get event status
* @return status
*/
public String getStatus() {
return status;
}
}