")// .setProvince("广东省")// .setCity("广州市")// .setDistrict("越秀区")//// .setStreet("中山四路")// .setAddress("光塔村33号")// .setCountry("中国")// .setPostcode("510610")// .setLatitude(23.1234567)// .setLongitude(113.12345)//// .setTel("998")//// .setEmail("memory@com")//// .setWebsite("memory.com")//// .setContact("lily")//// .setFax("fax")// .setInstantMessage("memory")//// .setOrg("新力同和资讯有限公司")// .setConfirmed(true)// .setSendable(true)// .setReceiveable(true)// .setSid("8d29a7e0-c7dc-4481-8467-6d172b7b2ba1")// .setCell("13800138000")//// .setOrgUid("")//// .setOrgCid("")//// .setWeibo("")//// .setWeixin("")//// .setAlipay("")//// .setQq("")//// .setLastname("");// // String json = p.toJson();// System.out.println("===>" json);// // Location loc = new Location();// Person p = loc.fromJson(json);// // System.out.println(p);// // System.out.println("postCode:" p.getPostcode());// System.out.println("country:" p.getCountry());// System.out.println("street:" p.getStreet());// System.out.println("org:" p.getOrg());// System.out.println("orgUid:" p.getOrgUid());// System.out.println("orgCid:" p.getOrgCid());// System.out.println("lastname:" p.getLastname());// System.out.println("firstname:" p.getFirstname());// System.out.println("middlename:" p.getMiddlename());// System.out.println("nickname:" p.getNickname());// System.out.println("photo:" p.getPhoto());// System.out.println("comment:" p.getComment());// System.out.println("province:" p.getProvince());// System.out.println("city:" p.getCity());// System.out.println("district:" p.getDistrict());// System.out.println("address:" p.getAddress());// System.out.println("telephones:" p.getTel());// System.out.println("email:" p.getEmail());// System.out.println("website:" p.getWebsite());// System.out.println("contact:" p.getContact());// System.out.println("fax:" p.getFax());// System.out.println("mobile:" p.getCell());// System.out.println("instantMsg:" p.getInstantMessage());// // System.out.println("sendable:" p.isSendable());// System.out.println("receiveable:" p.isReceiveable());// System.out.println("confirmed:" p.isConfirmed());// System.out.println("longitude:" p.getLongitude());// System.out.println("latitude:" p.getLatitude());// System.out.println("countryCode:" p.getCountryCode());// System.out.println("sid:" p.getSid());// System.out.println("displayName:" p.getDisplayName());// System.out.println("birthDate:" p.getBirthDate());// System.out.println("gender:" p.getGender());// System.out.println("timezone:" p.getTimezone());// System.out.println("enbId:" p.getEnbId());// } public void testPostJson() { List persons = new ArrayList(); persons.add(new PersonJsonTest().createPerson()); byte[] json = new ContactJsonUtil().postJson(persons); String content = new String(json, Charset.forName("UTF-8"));// String content = new String(json, Charset.forName("GBK"));// String content = new String(json, Charset.forName("ISO-8859-1")); System.out.println("===>" content); } public void test
免責聲明:若本站收錄的資源侵犯了您的權益,我們會及時刪除侵權內容,謝謝合作!