|
|
|
|
@ -78,6 +78,10 @@ public class Site implements Parcelable { |
|
|
|
|
@SerializedName("changeable") |
|
|
|
|
private Integer changeable; |
|
|
|
|
|
|
|
|
|
@Ignore |
|
|
|
|
@SerializedName("quickSearch") |
|
|
|
|
private Integer quickSearch; |
|
|
|
|
|
|
|
|
|
@Ignore |
|
|
|
|
@SerializedName("categories") |
|
|
|
|
private List<String> categories; |
|
|
|
|
@ -193,6 +197,10 @@ public class Site implements Parcelable { |
|
|
|
|
this.changeable = changeable; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public Integer getQuickSearch() { |
|
|
|
|
return quickSearch == null ? 1 : quickSearch; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public List<String> getCategories() { |
|
|
|
|
return categories == null ? Collections.emptyList() : categories; |
|
|
|
|
} |
|
|
|
|
@ -247,6 +255,10 @@ public class Site implements Parcelable { |
|
|
|
|
return this; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isQuickSearch() { |
|
|
|
|
return getQuickSearch() == 1; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public boolean isEmpty() { |
|
|
|
|
return getKey().isEmpty() && getName().isEmpty(); |
|
|
|
|
} |
|
|
|
|
|