package edu.rpi.cs.yacs.models;

/**
 * Created by Mark Robinson on 9/24/16.
 */

public class Period {
    private int day = 0, start = 0, end = 0;
    private String type = "";

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getEnd() {
        return end;
    }

    public void setEnd(int end) {
        this.end = end;
    }

    public int getStart() {
        return start;
    }

    public void setStart(int start) {
        this.start = start;
    }
}

@@ -26,16 +26,111 @@
 odels;%0A%0A
+import com.google.gson.annotations.Expose;%0Aimport com.google.gson.annotations.SerializedName;%0A%0A
 /**%0A * C
@@ -200,48 +200,43 @@
     
-private int day = 0, start = 0, end = 0;
+@SerializedName(%22type%22)%0A    @Expose
 %0A   
@@ -259,133 +259,263 @@
 type
- = %22%22
 ;%0A%0A    
-public int getDay() %7B%0A        return
+@SerializedName(%22day%22)%0A    @Expose%0A    private Integer
  day;%0A
+%0A
     
-%7D%0A%0A    public void setDay(int day) %7B%0A        this.day = day;%0A    %7D%0A
+@SerializedName(%22start%22)%0A    @Expose%0A    private Integer start;%0A%0A    @SerializedName(%22end%22)%0A    @Expose%0A    private Integer end;%0A%0A    /**%0A     *%0A     * @return%0A     * The type%0A     */
 %0A   
@@ -561,32 +561,90 @@
 rn type;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @param type%0A     * The type%0A     */%0A
     public void 
@@ -691,32 +691,85 @@
  = type;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @return%0A     * The day%0A     */%0A
     public int g
@@ -767,18 +767,22 @@
 lic 
-i
+I
 nt
+eger
  get
-End
+Day
 () %7B
@@ -797,19 +797,19 @@
  return 
-end
+day
 ;%0A    %7D%0A
@@ -817,34 +817,94 @@
     
-public void setEnd(int end
+/**%0A     *%0A     * @param day%0A     * The day%0A     */%0A    public void setDay(Integer day
 ) %7B%0A
@@ -920,17 +920,17 @@
 his.
-end = end
+day = day
 ;%0A  
@@ -926,32 +926,87 @@
 y = day;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @return%0A     * The start%0A     */%0A
     public int g
@@ -1000,19 +1000,23 @@
  public 
-i
+I
 nt
+eger
  getStar
@@ -1046,24 +1046,84 @@
 art;%0A    %7D%0A%0A
+    /**%0A     *%0A     * @param start%0A     * The start%0A     */%0A
     public v
@@ -1139,11 +1139,15 @@
 art(
-i
+I
 nt
+eger
  sta
@@ -1186,10 +1186,244 @@
 ;%0A    %7D%0A
-%7D
 %0A
+    /**%0A     *%0A     * @return%0A     * The end%0A     */%0A    public Integer getEnd() %7B%0A        return end;%0A    %7D%0A%0A    /**%0A     *%0A     * @param end%0A     * The end%0A     */%0A    public void setEnd(Integer end) %7B%0A        this.end = end;%0A    %7D%0A%7D

Create Period Model