@@ -38,6 +38,7 @@ public class Challenge implements Serializable
38
38
public static final String KEY_TAGS = "tags" ;
39
39
public static final String DEFAULT_CHECKIN_COMMENT = "#maproulette" ;
40
40
public static final String DISCOVERABLE = "enabled" ;
41
+ public static final String IS_ARCHIVED = "isArchived" ;
41
42
42
43
private static final long serialVersionUID = -8034692909431083341L ;
43
44
private static final Gson CHALLENGE_GSON = new GsonBuilder ().disableHtmlEscaping ()
@@ -64,6 +65,7 @@ public class Challenge implements Serializable
64
65
private String checkName ;
65
66
private boolean purge ;
66
67
private boolean changesetUrl = false ;
68
+ private boolean isArchived = false ;
67
69
68
70
public Challenge (final Challenge challenge )
69
71
{
@@ -194,6 +196,11 @@ public String getTags()
194
196
return this .tags ;
195
197
}
196
198
199
+ public boolean isArchived ()
200
+ {
201
+ return this .isArchived ;
202
+ }
203
+
197
204
public boolean isEnabled ()
198
205
{
199
206
return this .enabled ;
@@ -261,6 +268,7 @@ public JsonObject toJson(final String challengeName)
261
268
challengeJson .add (KEY_ACTIVE , new JsonPrimitive (true ));
262
269
challengeJson .add (KEY_UPDATE_TASKS , new JsonPrimitive (this .updateTasks ));
263
270
challengeJson .add (DISCOVERABLE , new JsonPrimitive (this .enabled ));
271
+ challengeJson .add (IS_ARCHIVED , new JsonPrimitive (this .isArchived ));
264
272
265
273
// Do not override the name if it's already set
266
274
if (this .name .isEmpty ())
0 commit comments