mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 02:37:16 +00:00
Refactoring
This commit is contained in:
parent
86ca2c00fc
commit
4b308382c9
1 changed files with 3 additions and 14 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue