Commit | Line | Data |
---|---|---|
bdd8f09c | 1 | package ro.ieval.unical; |
7be52756 PT |
2 | |
3 | import android.database.Cursor; | |
4 | ||
bdd8f09c | 5 | public class Event { |
7be52756 | 6 | public String _id; |
819197b2 | 7 | public int date,duration; |
bdd8f09c PT |
8 | public boolean repeat; |
9 | public int repeatInterval; | |
10 | public String location; | |
11 | public String description; | |
12 | public String tags[]; | |
13 | public String title; | |
7be52756 PT |
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 | ||
bdd8f09c PT |
27 | } |
28 | } |