public void setSelectConactInfo(ContactInfo contact) {
   if (contact != null) {
     mUpdateContact = contact;
     mTypeAdapter.setSelectedType(contact.getType());
     mContactEditText.setText(contact.getContact());
   } else {
     mUpdateContact = null;
   }
 }
Ejemplo n.º 2
0
 public static String getContactByIdParams(Long cid) {
   ContactInfo info = new ContactInfo();
   info.setId(cid + "");
   String v = new Gson().toJson(info);
   String url =
       SContactApplication.getURL()
           + mPath
           + "/get_contact"
           + "?json="
           + StringUtil.getEncodeURLParams(v);
   return url;
 }
Ejemplo n.º 3
0
 public static String getDeleteContactParams(Long cid) {
   ContactInfo info = new ContactInfo();
   info.setId(cid + "");
   String v = new Gson().toJson(info);
   String url =
       SContactApplication.getURL()
           + mPath
           + "/delete_contact"
           + "?json="
           + StringUtil.getEncodeURLParams(v);
   Bog.v("getDeleteContactParams url = " + url);
   return url;
 }
Ejemplo n.º 4
0
 public static String getSearchContactParams(String query) {
   ContactInfo info = new ContactInfo();
   info.setContact(query);
   String v = new Gson().toJson(info);
   String url =
       SContactApplication.getURL()
           + mPath
           + "/search_contact"
           + "?json="
           + StringUtil.getEncodeURLParams(v);
   Bog.v("getSearchContactParams url = " + url);
   return url;
 }