mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
move Day to models folder together with Events
This commit is contained in:
parent
7c5cdb86b0
commit
4204c6a8c5
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user