]>
Commit | Line | Data |
---|---|---|
1 | package ro.ieval.unical; | |
2 | ||
3 | import android.database.Cursor; | |
4 | ||
5 | public class Event { | |
6 | public String _id; | |
7 | public int date,duration; | |
8 | public boolean repeat; | |
9 | public int repeatInterval; | |
10 | public String location; | |
11 | public String description; | |
12 | public String tags[]; | |
13 | public String title; | |
14 | Event(Cursor cursor) { | |
15 | _id=cursor.getString(0); | |
16 | title=cursor.getString(1); | |
17 | description=cursor.getString(2); | |
18 | date=cursor.getInt(3); | |
19 | duration=cursor.getInt(4); | |
20 | if(cursor.getInt(5)==1) repeat=true; | |
21 | else repeat=false; | |
22 | repeatInterval=cursor.getInt(6); | |
23 | location=cursor.getString(7); | |
24 | } | |
25 | Event () { | |
26 | ||
27 | } | |
28 | } |