move Day to models folder together with Events

This commit is contained in:
tibbi 2016-07-03 21:11:03 +02:00
parent 7c5cdb86b0
commit 4204c6a8c5
3 changed files with 62 additions and 25 deletions

View File

@ -1,25 +0,0 @@
package com.simplemobiletools.calendar;
public class Day {
private final int mValue;
private final boolean mIsThisMonth;
private final boolean mIsToday;
public Day(int value, boolean isThisMonth, boolean isToday) {
this.mValue = value;
this.mIsThisMonth = isThisMonth;
this.mIsToday = isToday;
}
public int getValue() {
return mValue;
}
public boolean getIsThisMonth() {
return mIsThisMonth;
}
public boolean getIsToday() {
return mIsToday;
}
}

View File

@ -0,0 +1,37 @@
package com.simplemobiletools.calendar.models;
public class Day {
private final int mValue;
private final boolean mIsThisMonth;
private final boolean mIsToday;
private final boolean mHasNote;
private final int mCode;
public Day(int value, boolean isThisMonth, boolean isToday, int code, boolean hasNote) {
mValue = value;
mIsThisMonth = isThisMonth;
mIsToday = isToday;
mCode = code;
mHasNote = hasNote;
}
public int getValue() {
return mValue;
}
public boolean getIsThisMonth() {
return mIsThisMonth;
}
public boolean getIsToday() {
return mIsToday;
}
public int getCode() {
return mCode;
}
public boolean getHasNote() {
return mHasNote;
}
}

View File

@ -0,0 +1,25 @@
package com.simplemobiletools.calendar.models;
public class Event {
private final int mStartTS;
private final int mEndTS;
private final String mDescription;
public Event(int startTS, int endTS, String description) {
mStartTS = startTS;
mEndTS = endTS;
mDescription = description;
}
public int getStartTS() {
return mStartTS;
}
public int getEndTS() {
return mEndTS;
}
public String getDescription() {
return mDescription;
}
}