Пример #1
0
 public void clearDB() {
   dbManager.deleteAllContacts();
 }
Пример #2
0
 /**
  * 从本地获取联系人
  *
  * @return
  */
 public List<User> getContactsFromDB() {
   return dbManager.getAllContacts();
 }
Пример #3
0
 public ContactsManager(Context context) {
   SPManager spManager = new SPManager(context);
   this.context = context;
   dbManager = DBManager.getInstance(context, spManager.getLoginConfig().getUsername());
 }
Пример #4
0
 /** 保存到本地 */
 public void savaContacts(List<User> users) {
   dbManager.saveContacts(users);
 }
Пример #5
0
 public User getUserFromDB(String jid) {
   return dbManager.getUserByJid(jid);
 }