package edu.deanza.calendar.models;

import org.joda.time.DateTime;

/**
 * Created by Sara on 5/28/2016.
 */

public class Event {

    protected String name;
    protected String description;
    protected String location;
    protected String organization;
    protected DateTime startTime;
    protected DateTime endTime;

    // TODO: implement `categories` field

    public Event() {}

    public Event(String name, String description, String location, String organization,
                 String startTime, String endTime) {
        this.name = name;
        this.description = description;
        this.location = location;
        this.organization = organization;
        this.startTime = DateTime.parse(startTime);
        this.endTime = DateTime.parse(endTime);
    }

    public String getName() {
        return name;
    }

    public String getDescription() {
        return description;
    }

    public String getLocation() {
        return location;
    }

    public String getOrganization() {
        return organization;
    }

    public DateTime getStartTime() {
        return startTime;
    }

    public DateTime getEndTime() {
        return endTime;
    }

}
@@ -277,28 +277,24 @@
 teTime start
-Time
 ;%0A    protec
@@ -309,20 +309,16 @@
 Time end
-Time
 ;%0A%0A    /
@@ -495,20 +495,16 @@
 ng start
-Time
 , String
@@ -507,20 +507,16 @@
 ring end
-Time
 ) %7B%0A    
@@ -671,20 +671,16 @@
 is.start
-Time
  = DateT
@@ -694,20 +694,16 @@
 se(start
-Time
 );%0A     
@@ -713,20 +713,16 @@
 this.end
-Time
  = DateT
@@ -734,20 +734,16 @@
 arse(end
-Time
 );%0A    %7D
@@ -1042,20 +1042,16 @@
 getStart
-Time
 () %7B%0A   
@@ -1067,20 +1067,16 @@
 rn start
-Time
 ;%0A    %7D%0A
@@ -1102,20 +1102,16 @@
 e getEnd
-Time
 () %7B%0A   
@@ -1125,20 +1125,16 @@
 turn end
-Time
 ;%0A    %7D%0A

Remove "_time" suffix from Event fields