Class EventItem
- java.lang.Object
-
- com.evanv.taskapp.ui.main.recycler.EventItem
-
public class EventItem extends java.lang.ObjectClass representing an Event for use in the DayItem's recyclerview- Author:
- Evan Voogd
-
-
Constructor Summary
Constructors Constructor Description EventItem(java.lang.String name, java.lang.String timespan, int index)Creates an item representing an Event
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Returns string representing the name of the Eventjava.lang.StringgetTimespan()Returns string representing the timespan of the Event
-
-
-
Constructor Detail
-
EventItem
public EventItem(java.lang.String name, java.lang.String timespan, int index)Creates an item representing an Event- Parameters:
name- a string representing the name of the Eventtimespan- a string representing the timespan of the Eventindex- Index into eventSchedule.get(day) for this event
-
-
Method Detail
-
getName
public java.lang.String getName()
Returns string representing the name of the Event- Returns:
- a string representing the name of the Event
-
getTimespan
public java.lang.String getTimespan()
Returns string representing the timespan of the Event- Returns:
- a string representing the timespan of the Event
-
-