(Context context, long account, Address[] addresses, int type)
| 242 | } |
| 243 | |
| 244 | public static void delete(Context context, long account, Address[] addresses, int type) { |
| 245 | if (addresses == null) |
| 246 | return; |
| 247 | |
| 248 | DB db = DB.getInstance(context); |
| 249 | for (Address address : addresses) { |
| 250 | String email = ((InternetAddress) address).getAddress(); |
| 251 | if (TextUtils.isEmpty(email)) |
| 252 | continue; |
| 253 | db.contact().deleteContact(account, type, email); |
| 254 | } |
| 255 | } |
| 256 | |
| 257 | public JSONObject toJSON() throws JSONException { |
| 258 | JSONObject json = new JSONObject(); |
no test coverage detected