public void setSelectConactInfo(ContactInfo contact) { if (contact != null) { mUpdateContact = contact; mTypeAdapter.setSelectedType(contact.getType()); mContactEditText.setText(contact.getContact()); } else { mUpdateContact = null; } }
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; }
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; }
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; }