1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-28 02:37:16 +00:00

Refactoring

This commit is contained in:
M66B 2019-03-02 07:36:57 +00:00
parent 86ca2c00fc
commit 4b308382c9

View file

@ -80,21 +80,10 @@ public class EntityOperation {
static final String ATTACHMENT = "attachment";
static final String SYNC = "sync";
static void queue(Context context, DB db, EntityMessage message, String name) {
static void queue(Context context, DB db, EntityMessage message, String name, Object... values) {
JSONArray jargs = new JSONArray();
queue(context, db, message, name, jargs);
}
static void queue(Context context, DB db, EntityMessage message, String name, Object value) {
JSONArray jargs = new JSONArray();
jargs.put(value);
queue(context, db, message, name, jargs);
}
static void queue(Context context, DB db, EntityMessage message, String name, Object value1, Object value2) {
JSONArray jargs = new JSONArray();
jargs.put(value1);
jargs.put(value2);
for (Object value : values)
jargs.put(value);
queue(context, db, message, name, jargs);
}