Advertisement
Guest User

Event.java

a guest
Mar 24th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.32 KB | None | 0 0
  1. package csci201.rinkema.sebastian.sched;
  2.  
  3. import java.util.Date;
  4.  
  5. /**
  6. * Created by Saboodi on 3/16/2017.
  7. */
  8.  
  9. public class Event {
  10. private String eventName;
  11. private User host;
  12. private int locIndex;
  13. private Date calendar;
  14. private String description;
  15.  
  16. public Event(String eventName, User host, int locIndex, Date calendar, String description){
  17. this.eventName = eventName;
  18. this.host=host;
  19. this.locIndex=locIndex;
  20. this.calendar =calendar;
  21. this.description=description;
  22. }
  23.  
  24. public void setEventName(String name){
  25. eventName=name;
  26. }
  27. public void setHost(User name){
  28. host = name;
  29. }
  30. public void setLocIndex(int index){
  31. locIndex=index;
  32. }
  33. public void setCalendar(Date calendar){
  34. calendar=calendar;
  35. }
  36. public void setDescription(String description){
  37. this.description=description;
  38. }
  39.  
  40. public String getEventName(){
  41. return eventName;
  42. }
  43. public User getUser(){
  44. return host;
  45. }
  46. public int getLocInded(){
  47. return locIndex;
  48. }
  49. public Date getCalendar(){
  50. return calendar;
  51. }
  52. public String getDescription(){
  53. return description;
  54. }
  55.  
  56. public Date getDate(){
  57. return calendar;
  58. }
  59. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement