Default search for flagged/unseen messages

This commit is contained in:
M66B
2022-12-14 09:11:29 +01:00
parent ea2fc9f09d
commit bd3ac84d77
5 changed files with 2886 additions and 5 deletions

View File

@@ -1249,7 +1249,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
return false;
}
JSONObject toJson() throws JSONException {
JSONObject toJsonData() throws JSONException {
JSONObject json = new JSONObject();
json.put("query", query);
json.put("fts", fts);
@@ -1296,7 +1296,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
return json;
}
public static SearchCriteria fromJSON(JSONObject json) throws JSONException {
public static SearchCriteria fromJsonData(JSONObject json) throws JSONException {
SearchCriteria criteria = new SearchCriteria();
criteria.query = json.optString("query");
criteria.fts = json.optBoolean("fts");