16
16
*/
17
17
public class Session {
18
18
19
- int id ;
20
-
21
- String title ;
22
-
23
- String subtitle ;
24
-
25
19
@ SerializedName ("abstract" )
26
20
String summary ;
27
21
28
22
String description ;
29
23
30
- @ SerializedName ("start_time " )
24
+ @ SerializedName ("begin " )
31
25
String startTime ;
32
26
33
- @ SerializedName ("end_time " )
27
+ @ SerializedName ("end " )
34
28
String endTime ;
35
29
36
- String type ;
37
-
38
- int track ;
30
+ int id ;
39
31
40
32
String level ;
41
33
42
- int [] speakers ;
43
-
44
34
@ SerializedName ("microlocation" )
45
35
int microlocations ;
46
36
37
+ String title ;
38
+
39
+ String subtitle ;
40
+
41
+ @ SerializedName ("format" )
42
+ String type ;
43
+
44
+ int track ;
45
+
47
46
public Session (int id , String title , String subtitle ,
48
47
String summary , String description ,
49
48
String startTime , String endTime , String type ,
50
- int track , String level , int [] speakers , int microlocations
49
+ int track , String level , int microlocations
51
50
) throws ParseException {
52
51
this .id = id ;
53
52
this .title = title ;
@@ -59,7 +58,6 @@ public Session(int id, String title, String subtitle,
59
58
this .type = type ;
60
59
this .track = track ;
61
60
this .level = level ;
62
- this .speakers = speakers ;
63
61
this .microlocations = microlocations ;
64
62
}
65
63
@@ -143,14 +141,6 @@ public void setLevel(String level) {
143
141
this .level = level ;
144
142
}
145
143
146
- public int [] getSpeakers () {
147
- return speakers ;
148
- }
149
-
150
- public void setSpeakers (int [] speakers ) {
151
- this .speakers = speakers ;
152
- }
153
-
154
144
public int getMicrolocations () {
155
145
return microlocations ;
156
146
}
@@ -165,15 +155,15 @@ public String generateSql() {
165
155
query_normal ,
166
156
DbContract .Sessions .TABLE_NAME ,
167
157
id ,
168
- DatabaseUtils .sqlEscapeString (title ),
169
- DatabaseUtils .sqlEscapeString (subtitle ),
170
- DatabaseUtils .sqlEscapeString (summary ),
171
- DatabaseUtils .sqlEscapeString (description ),
172
- DatabaseUtils .sqlEscapeString (startTime ),
173
- DatabaseUtils .sqlEscapeString (endTime ),
174
- DatabaseUtils .sqlEscapeString (type ),
158
+ DatabaseUtils .sqlEscapeString (title + "" ),
159
+ DatabaseUtils .sqlEscapeString (subtitle + "" ),
160
+ DatabaseUtils .sqlEscapeString (summary + "" ),
161
+ DatabaseUtils .sqlEscapeString (description + "" ),
162
+ DatabaseUtils .sqlEscapeString (startTime + "" ),
163
+ DatabaseUtils .sqlEscapeString (endTime + "" ),
164
+ DatabaseUtils .sqlEscapeString (type + "" ),
175
165
track ,
176
- DatabaseUtils .sqlEscapeString (level ),
166
+ DatabaseUtils .sqlEscapeString (level + "" ),
177
167
microlocations );
178
168
return query ;
179
169
}
0 commit comments