Esempio n. 1
0
 public static String getUpdateContactParams(ContactInfo info) {
   String v = new Gson().toJson(info);
   String url =
       SContactApplication.getURL()
           + mPath
           + "/update_contact"
           + "?json="
           + StringUtil.getEncodeURLParams(v);
   Bog.v("getUpdateContactParams url = " + url);
   return url;
 }
Esempio 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;
 }
Esempio n. 3
0
 public static String getUserContactsParams(Long uid) {
   ContactInfo info = new ContactInfo();
   //		info.setUserId(uid);
   String v = new Gson().toJson(info);
   String url =
       SContactApplication.getURL()
           + mPath
           + "/get_user_contacts"
           + "?json="
           + StringUtil.getEncodeURLParams(v);
   Bog.v("getUserContactsParams url = " + url);
   return url;
 }
Esempio n. 4
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;
 }
Esempio n. 5
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;
 }
Esempio n. 6
0
 public static String getAllContactParams() {
   String url = SContactApplication.getURL() + mPath + "/get_all_contacts";
   Bog.v("getAllContactParams url = " + url);
   return url;
 }