@@ -13,6 +13,7 @@ public class WeekViewEvent {
13
13
private String mName ;
14
14
private String mLocation ;
15
15
private int mColor ;
16
+ private boolean mAllDay ;
16
17
17
18
public WeekViewEvent (){
18
19
@@ -60,13 +61,27 @@ public WeekViewEvent(long id, String name, int startYear, int startMonth, int st
60
61
* @param location The location of the event.
61
62
* @param startTime The time when the event starts.
62
63
* @param endTime The time when the event ends.
64
+ * @param allDay Is the event an all day event
63
65
*/
64
- public WeekViewEvent (long id , String name , String location , Calendar startTime , Calendar endTime ) {
66
+ public WeekViewEvent (long id , String name , String location , Calendar startTime , Calendar endTime , boolean allDay ) {
65
67
this .mId = id ;
66
68
this .mName = name ;
67
69
this .mLocation = location ;
68
70
this .mStartTime = startTime ;
69
71
this .mEndTime = endTime ;
72
+ this .mAllDay = allDay ;
73
+ }
74
+
75
+ /**
76
+ * Initializes the event for week view.
77
+ * @param id The id of the event.
78
+ * @param name Name of the event.
79
+ * @param location The location of the event.
80
+ * @param startTime The time when the event starts.
81
+ * @param endTime The time when the event ends.
82
+ */
83
+ public WeekViewEvent (long id , String name , String location , Calendar startTime , Calendar endTime ) {
84
+ this (id , name , location , startTime , endTime , false );
70
85
}
71
86
72
87
/**
0 commit comments