updated request and response per online-decode server
This commit is contained in:
@@ -29,9 +29,11 @@ public class WebAPIs {
|
|||||||
|
|
||||||
private static WebAPIs mInstance = null;
|
private static WebAPIs mInstance = null;
|
||||||
|
|
||||||
private static final String URL_PREFIX = "http://irext.net/irext";
|
private static final String DEFAULT_ADDRESS = "http://irext.net:8080";
|
||||||
|
private static final String DEFAULT_APP = "/irext";
|
||||||
|
private static String URL_PREFIX = DEFAULT_ADDRESS + DEFAULT_APP;
|
||||||
|
|
||||||
private static final String SERVICE_SIGN_IN = "/certificate/admin_login";
|
private static final String SERVICE_SIGN_IN = "/admin/sign_in";
|
||||||
private static final String SERVICE_LIST_CATEGORIES = "/int/list_categories";
|
private static final String SERVICE_LIST_CATEGORIES = "/int/list_categories";
|
||||||
private static final String SERVICE_LIST_BRANDS = "/int/list_brands";
|
private static final String SERVICE_LIST_BRANDS = "/int/list_brands";
|
||||||
private static final String SERVICE_LIST_PROVINCES = "/int/list_provinces";
|
private static final String SERVICE_LIST_PROVINCES = "/int/list_provinces";
|
||||||
@@ -45,18 +47,21 @@ public class WebAPIs {
|
|||||||
|
|
||||||
private OkHttpClient mHttpClient;
|
private OkHttpClient mHttpClient;
|
||||||
|
|
||||||
private WebAPIs() {
|
private WebAPIs(String address, String appName) {
|
||||||
|
if (null != address && null != appName) {
|
||||||
|
URL_PREFIX = address + appName;
|
||||||
|
}
|
||||||
mHttpClient = new OkHttpClient();
|
mHttpClient = new OkHttpClient();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initializeInstance() {
|
private static void initializeInstance(String address, String appName) {
|
||||||
mInstance = new WebAPIs();
|
mInstance = new WebAPIs(address, appName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
@SuppressWarnings("unused")
|
||||||
public static WebAPIs getInstance() {
|
public static WebAPIs getInstance(String address, String appName) {
|
||||||
if (null == mInstance) {
|
if (null == mInstance) {
|
||||||
initializeInstance();
|
initializeInstance(address, appName);
|
||||||
}
|
}
|
||||||
return mInstance;
|
return mInstance;
|
||||||
}
|
}
|
||||||
@@ -92,7 +97,7 @@ public class WebAPIs {
|
|||||||
public Admin signIn(String user_name, String password) {
|
public Admin signIn(String user_name, String password) {
|
||||||
String signInURL = URL_PREFIX + SERVICE_SIGN_IN;
|
String signInURL = URL_PREFIX + SERVICE_SIGN_IN;
|
||||||
LoginRequest loginRequest = new LoginRequest();
|
LoginRequest loginRequest = new LoginRequest();
|
||||||
loginRequest.setUser_name(user_name);
|
loginRequest.setUserName(user_name);
|
||||||
loginRequest.setPassword(MD5Digest.MD5(password));
|
loginRequest.setPassword(MD5Digest.MD5(password));
|
||||||
String bodyJson = loginRequest.toJson();
|
String bodyJson = loginRequest.toJson();
|
||||||
|
|
||||||
@@ -117,7 +122,7 @@ public class WebAPIs {
|
|||||||
public List<Category> listCategories(int from, int count) {
|
public List<Category> listCategories(int from, int count) {
|
||||||
String listCategoriesURL = URL_PREFIX + SERVICE_LIST_CATEGORIES;
|
String listCategoriesURL = URL_PREFIX + SERVICE_LIST_CATEGORIES;
|
||||||
ListCategoriesRequest listCategoriesRequest = new ListCategoriesRequest();
|
ListCategoriesRequest listCategoriesRequest = new ListCategoriesRequest();
|
||||||
listCategoriesRequest.setAdmin_id(adminID);
|
listCategoriesRequest.setAdminId(adminID);
|
||||||
listCategoriesRequest.setToken(token);
|
listCategoriesRequest.setToken(token);
|
||||||
listCategoriesRequest.setFrom(from);
|
listCategoriesRequest.setFrom(from);
|
||||||
listCategoriesRequest.setCount(count);
|
listCategoriesRequest.setCount(count);
|
||||||
@@ -140,9 +145,9 @@ public class WebAPIs {
|
|||||||
public List<Brand> listBrands(int categoryID, int from, int count) {
|
public List<Brand> listBrands(int categoryID, int from, int count) {
|
||||||
String listBrandsURL = URL_PREFIX + SERVICE_LIST_BRANDS;
|
String listBrandsURL = URL_PREFIX + SERVICE_LIST_BRANDS;
|
||||||
ListBrandsRequest listBrandsRequest = new ListBrandsRequest();
|
ListBrandsRequest listBrandsRequest = new ListBrandsRequest();
|
||||||
listBrandsRequest.setAdmin_id(adminID);
|
listBrandsRequest.setAdminId(adminID);
|
||||||
listBrandsRequest.setToken(token);
|
listBrandsRequest.setToken(token);
|
||||||
listBrandsRequest.setCategory_id(categoryID);
|
listBrandsRequest.setCategoryId(categoryID);
|
||||||
listBrandsRequest.setFrom(from);
|
listBrandsRequest.setFrom(from);
|
||||||
listBrandsRequest.setCount(count);
|
listBrandsRequest.setCount(count);
|
||||||
String bodyJson = listBrandsRequest.toJson();
|
String bodyJson = listBrandsRequest.toJson();
|
||||||
@@ -164,7 +169,7 @@ public class WebAPIs {
|
|||||||
public List<City> listProvinces() {
|
public List<City> listProvinces() {
|
||||||
String listProvincesURL = URL_PREFIX + SERVICE_LIST_PROVINCES;
|
String listProvincesURL = URL_PREFIX + SERVICE_LIST_PROVINCES;
|
||||||
ListCitiesRequest listCitiesRequest = new ListCitiesRequest();
|
ListCitiesRequest listCitiesRequest = new ListCitiesRequest();
|
||||||
listCitiesRequest.setAdmin_id(adminID);
|
listCitiesRequest.setAdminId(adminID);
|
||||||
listCitiesRequest.setToken(token);
|
listCitiesRequest.setToken(token);
|
||||||
String bodyJson = listCitiesRequest.toJson();
|
String bodyJson = listCitiesRequest.toJson();
|
||||||
|
|
||||||
@@ -175,9 +180,9 @@ public class WebAPIs {
|
|||||||
public List<City> listCities(String prefix) {
|
public List<City> listCities(String prefix) {
|
||||||
String listCitiesURL = URL_PREFIX + SERVICE_LIST_CITIES;
|
String listCitiesURL = URL_PREFIX + SERVICE_LIST_CITIES;
|
||||||
ListCitiesRequest listCitiesRequest = new ListCitiesRequest();
|
ListCitiesRequest listCitiesRequest = new ListCitiesRequest();
|
||||||
listCitiesRequest.setAdmin_id(adminID);
|
listCitiesRequest.setAdminId(adminID);
|
||||||
listCitiesRequest.setToken(token);
|
listCitiesRequest.setToken(token);
|
||||||
listCitiesRequest.setProvince_prefix(prefix);
|
listCitiesRequest.setProvincePrefix(prefix);
|
||||||
String bodyJson = listCitiesRequest.toJson();
|
String bodyJson = listCitiesRequest.toJson();
|
||||||
|
|
||||||
return listCitiesCommon(listCitiesURL, bodyJson);
|
return listCitiesCommon(listCitiesURL, bodyJson);
|
||||||
@@ -201,9 +206,9 @@ public class WebAPIs {
|
|||||||
public List<StbOperator> listOperators(String cityCode) {
|
public List<StbOperator> listOperators(String cityCode) {
|
||||||
String listOperatorsURL = URL_PREFIX + SERVICE_LIST_OPERATORS;
|
String listOperatorsURL = URL_PREFIX + SERVICE_LIST_OPERATORS;
|
||||||
ListOperatorsRequest listOperatorsRequest = new ListOperatorsRequest();
|
ListOperatorsRequest listOperatorsRequest = new ListOperatorsRequest();
|
||||||
listOperatorsRequest.setAdmin_id(adminID);
|
listOperatorsRequest.setAdminId(adminID);
|
||||||
listOperatorsRequest.setToken(token);
|
listOperatorsRequest.setToken(token);
|
||||||
listOperatorsRequest.setCity_code(cityCode);
|
listOperatorsRequest.setCityCode(cityCode);
|
||||||
listOperatorsRequest.setFrom(0);
|
listOperatorsRequest.setFrom(0);
|
||||||
listOperatorsRequest.setCount(20);
|
listOperatorsRequest.setCount(20);
|
||||||
String bodyJson = listOperatorsRequest.toJson();
|
String bodyJson = listOperatorsRequest.toJson();
|
||||||
@@ -225,12 +230,12 @@ public class WebAPIs {
|
|||||||
public List<RemoteIndex> listRemoteIndexes(int categoryID, int brandID, String cityCode, String operatorID) {
|
public List<RemoteIndex> listRemoteIndexes(int categoryID, int brandID, String cityCode, String operatorID) {
|
||||||
String listIndexesURL = URL_PREFIX + SERVICE_LIST_INDEXES;
|
String listIndexesURL = URL_PREFIX + SERVICE_LIST_INDEXES;
|
||||||
ListIndexesRequest listIndexesRequest = new ListIndexesRequest();
|
ListIndexesRequest listIndexesRequest = new ListIndexesRequest();
|
||||||
listIndexesRequest.setAdmin_id(adminID);
|
listIndexesRequest.setAdminId(adminID);
|
||||||
listIndexesRequest.setToken(token);
|
listIndexesRequest.setToken(token);
|
||||||
listIndexesRequest.setCategory_id(categoryID);
|
listIndexesRequest.setCategoryId(categoryID);
|
||||||
listIndexesRequest.setBrand_id(brandID);
|
listIndexesRequest.setBrandId(brandID);
|
||||||
listIndexesRequest.setCity_code(cityCode);
|
listIndexesRequest.setCityCode(cityCode);
|
||||||
listIndexesRequest.setOperator_id(operatorID);
|
listIndexesRequest.setOperatorId(operatorID);
|
||||||
listIndexesRequest.setFrom(0);
|
listIndexesRequest.setFrom(0);
|
||||||
listIndexesRequest.setCount(20);
|
listIndexesRequest.setCount(20);
|
||||||
String bodyJson = listIndexesRequest.toJson();
|
String bodyJson = listIndexesRequest.toJson();
|
||||||
@@ -253,9 +258,9 @@ public class WebAPIs {
|
|||||||
public InputStream downloadBin(String remoteMap, int indexID) {
|
public InputStream downloadBin(String remoteMap, int indexID) {
|
||||||
String downloadURL = URL_PREFIX + SERVICE_DOWNLOAD_BIN;
|
String downloadURL = URL_PREFIX + SERVICE_DOWNLOAD_BIN;
|
||||||
DownloadBinaryRequest downloadBinaryRequest = new DownloadBinaryRequest();
|
DownloadBinaryRequest downloadBinaryRequest = new DownloadBinaryRequest();
|
||||||
downloadBinaryRequest.setAdmin_id(adminID);
|
downloadBinaryRequest.setAdminId(adminID);
|
||||||
downloadBinaryRequest.setToken(token);
|
downloadBinaryRequest.setToken(token);
|
||||||
downloadBinaryRequest.setIndex_id(indexID);
|
downloadBinaryRequest.setIndexId(indexID);
|
||||||
|
|
||||||
String bodyJson = downloadBinaryRequest.toJson();
|
String bodyJson = downloadBinaryRequest.toJson();
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,11 @@ package net.irext.webapi.model;
|
|||||||
public class Admin {
|
public class Admin {
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private String user_name;
|
private String userName;
|
||||||
private String password;
|
private String password;
|
||||||
private String token;
|
private String token;
|
||||||
private String permissions;
|
private String permissions;
|
||||||
private int admin_type;
|
private int adminType;
|
||||||
|
|
||||||
public Admin() {
|
public Admin() {
|
||||||
|
|
||||||
@@ -31,12 +31,12 @@ public class Admin {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUser_name() {
|
public String getUserName() {
|
||||||
return user_name;
|
return userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUser_name(String user_name) {
|
public void setUserName(String userName) {
|
||||||
this.user_name = user_name;
|
this.userName = userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
@@ -63,11 +63,11 @@ public class Admin {
|
|||||||
this.permissions = permissions;
|
this.permissions = permissions;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getAdmin_type() {
|
public int getAdminType() {
|
||||||
return admin_type;
|
return adminType;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAdmin_type(int admin_type) {
|
public void setAdminType(int adminType) {
|
||||||
this.admin_type = admin_type;
|
this.adminType = adminType;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,27 +14,27 @@ public class Brand {
|
|||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
||||||
private int category_id;
|
private int categoryId;
|
||||||
private String category_name;
|
private String categoryName;
|
||||||
private int status;
|
private int status;
|
||||||
private String update_time;
|
private String updateTime;
|
||||||
private int priority;
|
private int priority;
|
||||||
private String name_en;
|
private String nameEn;
|
||||||
private String name_tw;
|
private String nameTw;
|
||||||
private String contributor;
|
private String contributor;
|
||||||
|
|
||||||
public Brand(int id, String name, int category_id, String category_name, int status,
|
public Brand(int id, String name, int categoryId, String categoryName, int status,
|
||||||
String update_time, int priority,
|
String updateTime, int priority,
|
||||||
String name_en, String name_tw, String contributor) {
|
String nameEn, String nameTw, String contributor) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
this.category_name = category_name;
|
this.categoryName = categoryName;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
this.name_en = name_en;
|
this.nameEn = nameEn;
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
this.contributor = contributor;
|
this.contributor = contributor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -58,20 +58,20 @@ public class Brand {
|
|||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCategory_id() {
|
public int getCategoryId() {
|
||||||
return category_id;
|
return categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_id(int category_id) {
|
public void setCategoryId(int categoryId) {
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCategory_name() {
|
public String getCategoryName() {
|
||||||
return category_name;
|
return categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_name(String category_name) {
|
public void setCategoryName(String categoryName) {
|
||||||
this.category_name = category_name;
|
this.categoryName = categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStatus() {
|
public int getStatus() {
|
||||||
@@ -82,12 +82,12 @@ public class Brand {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpdate_time() {
|
public String getUpdateTime() {
|
||||||
return update_time;
|
return updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUpdate_time(String update_time) {
|
public void setUpdateTime(String updateTime) {
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPriority() {
|
public int getPriority() {
|
||||||
@@ -98,20 +98,20 @@ public class Brand {
|
|||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName_en() {
|
public String getNameEn() {
|
||||||
return name_en;
|
return nameEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName_en(String name_en) {
|
public void setNameEn(String nameEn) {
|
||||||
this.name_en = name_en;
|
this.nameEn = nameEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName_tw() {
|
public String getNameTw() {
|
||||||
return name_tw;
|
return nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName_tw(String name_tw) {
|
public void setNameTw(String nameTw) {
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContributor() {
|
public String getContributor() {
|
||||||
|
|||||||
@@ -15,19 +15,19 @@ public class Category {
|
|||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
||||||
private int status;
|
private int status;
|
||||||
private String update_time;
|
private String updateTime;
|
||||||
private String name_en;
|
private String nameEn;
|
||||||
private String name_tw;
|
private String nameTw;
|
||||||
private String contributor;
|
private String contributor;
|
||||||
|
|
||||||
public Category(int id, String name, int status, String update_time,
|
public Category(int id, String name, int status, String updateTime,
|
||||||
String name_en, String name_tw, String contributor) {
|
String nameEn, String nameTw, String contributor) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
this.name_en = name_en;
|
this.nameEn = nameEn;
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
this.contributor = contributor;
|
this.contributor = contributor;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -59,28 +59,28 @@ public class Category {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpdate_time() {
|
public String getUpdateTime() {
|
||||||
return update_time;
|
return updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUpdate_time(String update_time) {
|
public void setUpdateTime(String updateTime) {
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName_en() {
|
public String getNameEn() {
|
||||||
return name_en;
|
return nameEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName_en(String name_en) {
|
public void setNameEn(String nameEn) {
|
||||||
this.name_en = name_en;
|
this.nameEn = nameEn;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName_tw() {
|
public String getNameTw() {
|
||||||
return name_tw;
|
return nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName_tw(String name_tw) {
|
public void setNameTw(String nameTw) {
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContributor() {
|
public String getContributor() {
|
||||||
|
|||||||
@@ -18,17 +18,17 @@ public class City {
|
|||||||
private double longitude;
|
private double longitude;
|
||||||
private double latitude;
|
private double latitude;
|
||||||
private int status;
|
private int status;
|
||||||
private String name_tw;
|
private String nameTw;
|
||||||
|
|
||||||
public City(int id, String code, String name, double longitude, double latitude,
|
public City(int id, String code, String name, double longitude, double latitude,
|
||||||
int status, String name_tw) {
|
int status, String nameTw) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.code = code;
|
this.code = code;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
this.longitude = longitude;
|
this.longitude = longitude;
|
||||||
this.latitude = latitude;
|
this.latitude = latitude;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public City() {
|
public City() {
|
||||||
@@ -83,11 +83,11 @@ public class City {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName_tw() {
|
public String getNameTw() {
|
||||||
return name_tw;
|
return nameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName_tw(String name_tw) {
|
public void setNameTw(String nameTw) {
|
||||||
this.name_tw = name_tw;
|
this.nameTw = nameTw;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,60 +13,60 @@ package net.irext.webapi.model;
|
|||||||
public class RemoteIndex {
|
public class RemoteIndex {
|
||||||
|
|
||||||
private int id;
|
private int id;
|
||||||
private int category_id;
|
private int categoryId;
|
||||||
private String category_name;
|
private String categoryName;
|
||||||
private int brand_id;
|
private int brandId;
|
||||||
private String brand_name;
|
private String brandName;
|
||||||
private String city_code;
|
private String cityCode;
|
||||||
private String city_name;
|
private String cityName;
|
||||||
private String operator_id;
|
private String operatorId;
|
||||||
private String operator_name;
|
private String operatorName;
|
||||||
private String protocol;
|
private String protocol;
|
||||||
private String remote;
|
private String remote;
|
||||||
private String remote_map;
|
private String remoteMap;
|
||||||
private int status;
|
private int status;
|
||||||
private int sub_cate;
|
private int subCate;
|
||||||
private int priority;
|
private int priority;
|
||||||
private String remote_number;
|
private String remoteNumber;
|
||||||
private String category_name_tw;
|
private String categoryNameTw;
|
||||||
private String brand_name_tw;
|
private String brandNameTw;
|
||||||
private String city_name_tw;
|
private String cityNameTw;
|
||||||
private String operator_name_tw;
|
private String operatorNameTw;
|
||||||
private String binary_md5;
|
private String binaryMd5;
|
||||||
private String contributor;
|
private String contributor;
|
||||||
private String update_time;
|
private String updateTime;
|
||||||
|
|
||||||
public RemoteIndex(int id,
|
public RemoteIndex(int id,
|
||||||
int category_id, String category_name, int brand_id, String brand_name,
|
int categoryId, String categoryName, int brandId, String brandName,
|
||||||
String city_code, String city_name, String operator_id, String operator_name,
|
String cityCode, String cityName, String operatorId, String operatorName,
|
||||||
String protocol, String remote, String remote_map, int status, int sub_cate,
|
String protocol, String remote, String remoteMap, int status, int subCate,
|
||||||
int priority, String remote_number,
|
int priority, String remoteNumber,
|
||||||
String category_name_tw, String brand_name_tw,
|
String categoryNameTw, String brandNameTw,
|
||||||
String city_name_tw, String operator_name_tw,
|
String cityNameTw, String operatorNameTw,
|
||||||
String binary_md5, String contributor, String update_time) {
|
String binaryMd5, String contributor, String updateTime) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
this.category_name = category_name;
|
this.categoryName = categoryName;
|
||||||
this.brand_id = brand_id;
|
this.brandId = brandId;
|
||||||
this.brand_name = brand_name;
|
this.brandName = brandName;
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
this.city_name = city_name;
|
this.cityName = cityName;
|
||||||
this.operator_id = operator_id;
|
this.operatorId = operatorId;
|
||||||
this.operator_name = operator_name;
|
this.operatorName = operatorName;
|
||||||
this.protocol = protocol;
|
this.protocol = protocol;
|
||||||
this.remote = remote;
|
this.remote = remote;
|
||||||
this.remote_map = remote_map;
|
this.remoteMap = remoteMap;
|
||||||
this.status = status;
|
this.status = status;
|
||||||
this.sub_cate = sub_cate;
|
this.subCate = subCate;
|
||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
this.remote_number = remote_number;
|
this.remoteNumber = remoteNumber;
|
||||||
this.category_name_tw = category_name_tw;
|
this.categoryNameTw = categoryNameTw;
|
||||||
this.brand_name_tw = brand_name_tw;
|
this.brandNameTw = brandNameTw;
|
||||||
this.city_name_tw = city_name_tw;
|
this.cityNameTw = cityNameTw;
|
||||||
this.operator_name_tw = operator_name_tw;
|
this.operatorNameTw = operatorNameTw;
|
||||||
this.binary_md5 = binary_md5;
|
this.binaryMd5 = binaryMd5;
|
||||||
this.contributor = contributor;
|
this.contributor = contributor;
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public RemoteIndex() {
|
public RemoteIndex() {
|
||||||
@@ -81,68 +81,68 @@ public class RemoteIndex {
|
|||||||
this.id = id;
|
this.id = id;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCategory_id() {
|
public int getCategoryId() {
|
||||||
return category_id;
|
return categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_id(int category_id) {
|
public void setCategoryId(int categoryId) {
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCategory_name() {
|
public String getCategoryName() {
|
||||||
return category_name;
|
return categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_name(String category_name) {
|
public void setCategoryName(String categoryName) {
|
||||||
this.category_name = category_name;
|
this.categoryName = categoryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBrand_id() {
|
public int getBrandId() {
|
||||||
return brand_id;
|
return brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBrand_id(int brand_id) {
|
public void setBrandId(int brandId) {
|
||||||
this.brand_id = brand_id;
|
this.brandId = brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getBrand_name() {
|
public String getBrandName() {
|
||||||
return brand_name;
|
return brandName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBrand_name(String brand_name) {
|
public void setBrandName(String brandName) {
|
||||||
this.brand_name = brand_name;
|
this.brandName = brandName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCity_code() {
|
public String getCityCode() {
|
||||||
return city_code;
|
return cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCity_code(String city_code) {
|
public void setCityCode(String cityCode) {
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCity_name() {
|
public String getCityName() {
|
||||||
return city_name;
|
return cityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCity_name(String city_name) {
|
public void setCityName(String cityName) {
|
||||||
this.city_name = city_name;
|
this.cityName = cityName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOperator_id() {
|
public String getOperatorId() {
|
||||||
return operator_id;
|
return operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOperator_id(String operator_id) {
|
public void setOperatorId(String operatorId) {
|
||||||
this.operator_id = operator_id;
|
this.operatorId = operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOperator_name() {
|
public String getOperatorName() {
|
||||||
return operator_name;
|
return operatorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOperator_name(String operator_name) {
|
public void setOperatorName(String operatorName) {
|
||||||
this.operator_name = operator_name;
|
this.operatorName = operatorName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProtocol() {
|
public String getProtocol() {
|
||||||
@@ -161,12 +161,12 @@ public class RemoteIndex {
|
|||||||
this.remote = remote;
|
this.remote = remote;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRemote_map() {
|
public String getRemoteMap() {
|
||||||
return remote_map;
|
return remoteMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRemote_map(String remote_map) {
|
public void setRemoteMap(String remoteMap) {
|
||||||
this.remote_map = remote_map;
|
this.remoteMap = remoteMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getStatus() {
|
public int getStatus() {
|
||||||
@@ -177,12 +177,12 @@ public class RemoteIndex {
|
|||||||
this.status = status;
|
this.status = status;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getSub_cate() {
|
public int getSubCate() {
|
||||||
return sub_cate;
|
return subCate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setSub_cate(int sub_cate) {
|
public void setSubCate(int subCate) {
|
||||||
this.sub_cate = sub_cate;
|
this.subCate = subCate;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getPriority() {
|
public int getPriority() {
|
||||||
@@ -193,52 +193,52 @@ public class RemoteIndex {
|
|||||||
this.priority = priority;
|
this.priority = priority;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getRemote_number() {
|
public String getRemoteNumber() {
|
||||||
return remote_number;
|
return remoteNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRemote_number(String remote_number) {
|
public void setRemoteNumber(String remoteNumber) {
|
||||||
this.remote_number = remote_number;
|
this.remoteNumber = remoteNumber;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCategory_name_tw() {
|
public String getCategoryNameTw() {
|
||||||
return category_name_tw;
|
return categoryNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_name_tw(String category_name_tw) {
|
public void setCategoryNameTw(String categoryNameTw) {
|
||||||
this.category_name_tw = category_name_tw;
|
this.categoryNameTw = categoryNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getBrand_name_tw() {
|
public String getBrandNameTw() {
|
||||||
return brand_name_tw;
|
return brandNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBrand_name_tw(String brand_name_tw) {
|
public void setBrandNameTw(String brandNameTw) {
|
||||||
this.brand_name_tw = brand_name_tw;
|
this.brandNameTw = brandNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCity_name_tw() {
|
public String getCityNameTw() {
|
||||||
return city_name_tw;
|
return cityNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCity_name_tw(String city_name_tw) {
|
public void setCityNameTw(String cityNameTw) {
|
||||||
this.city_name_tw = city_name_tw;
|
this.cityNameTw = cityNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOperator_name_tw() {
|
public String getOperatorNameTw() {
|
||||||
return operator_name_tw;
|
return operatorNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOperator_name_tw(String operator_name_tw) {
|
public void setOperatorNameTw(String operatorNameTw) {
|
||||||
this.operator_name_tw = operator_name_tw;
|
this.operatorNameTw = operatorNameTw;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getBinary_md5() {
|
public String getBinaryMd5() {
|
||||||
return binary_md5;
|
return binaryMd5;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBinary_md5(String binary_md5) {
|
public void setBinaryMd5(String binaryMd5) {
|
||||||
this.binary_md5 = binary_md5;
|
this.binaryMd5 = binaryMd5;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getContributor() {
|
public String getContributor() {
|
||||||
@@ -249,11 +249,11 @@ public class RemoteIndex {
|
|||||||
this.contributor = contributor;
|
this.contributor = contributor;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUpdate_time() {
|
public String getUpdateTime() {
|
||||||
return update_time;
|
return updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUpdate_time(String update_time) {
|
public void setUpdateTime(String updateTime) {
|
||||||
this.update_time = update_time;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,24 +14,24 @@ import com.google.gson.Gson;
|
|||||||
*/
|
*/
|
||||||
public class BaseRequest {
|
public class BaseRequest {
|
||||||
|
|
||||||
private int admin_id;
|
private int adminId;
|
||||||
private String token;
|
private String token;
|
||||||
|
|
||||||
public BaseRequest(int adminID, String token) {
|
public BaseRequest(int adminId, String token) {
|
||||||
this.admin_id = adminID;
|
this.adminId = adminId;
|
||||||
this.token = token;
|
this.token = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
public BaseRequest() {
|
BaseRequest() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getAdmin_id() {
|
public int getAdminId() {
|
||||||
return admin_id;
|
return adminId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAdmin_id(int admin_id) {
|
public void setAdminId(int adminId) {
|
||||||
this.admin_id = admin_id;
|
this.adminId = adminId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getToken() {
|
public String getToken() {
|
||||||
|
|||||||
@@ -12,21 +12,21 @@ package net.irext.webapi.request;
|
|||||||
*/
|
*/
|
||||||
public class DownloadBinaryRequest extends BaseRequest {
|
public class DownloadBinaryRequest extends BaseRequest {
|
||||||
|
|
||||||
private int index_id;
|
private int indexId;
|
||||||
|
|
||||||
public DownloadBinaryRequest(int index_id) {
|
public DownloadBinaryRequest(int indexId) {
|
||||||
this.index_id = index_id;
|
this.indexId = indexId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public DownloadBinaryRequest() {
|
public DownloadBinaryRequest() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getIndex_id() {
|
public int getIndexId() {
|
||||||
return index_id;
|
return indexId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setIndex_id(int index_id) {
|
public void setIndexId(int indexId) {
|
||||||
this.index_id = index_id;
|
this.indexId = indexId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,12 +12,12 @@ package net.irext.webapi.request;
|
|||||||
*/
|
*/
|
||||||
public class ListBrandsRequest extends BaseRequest {
|
public class ListBrandsRequest extends BaseRequest {
|
||||||
|
|
||||||
private int category_id;
|
private int categoryId;
|
||||||
private int from;
|
private int from;
|
||||||
private int count;
|
private int count;
|
||||||
|
|
||||||
public ListBrandsRequest(int category_id, int from, int count) {
|
public ListBrandsRequest(int categoryId, int from, int count) {
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
this.from = from;
|
this.from = from;
|
||||||
this.count = count;
|
this.count = count;
|
||||||
}
|
}
|
||||||
@@ -26,12 +26,12 @@ public class ListBrandsRequest extends BaseRequest {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCategory_id() {
|
public int getCategoryId() {
|
||||||
return category_id;
|
return categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_id(int category_id) {
|
public void setCategoryId(int categoryId) {
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getFrom() {
|
public int getFrom() {
|
||||||
|
|||||||
@@ -12,21 +12,21 @@ package net.irext.webapi.request;
|
|||||||
*/
|
*/
|
||||||
public class ListCitiesRequest extends BaseRequest {
|
public class ListCitiesRequest extends BaseRequest {
|
||||||
|
|
||||||
private String province_prefix;
|
private String provincePrefix;
|
||||||
|
|
||||||
public ListCitiesRequest(String province_prefix) {
|
public ListCitiesRequest(String provincePrefix) {
|
||||||
this.province_prefix = province_prefix;
|
this.provincePrefix = provincePrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ListCitiesRequest() {
|
public ListCitiesRequest() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getProvince_prefix() {
|
public String getProvincePrefix() {
|
||||||
return province_prefix;
|
return provincePrefix;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setProvince_prefix(String province_prefix) {
|
public void setProvincePrefix(String provincePrefix) {
|
||||||
this.province_prefix = province_prefix;
|
this.provincePrefix = provincePrefix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,19 +14,19 @@ public class ListIndexesRequest extends BaseRequest {
|
|||||||
|
|
||||||
private int from;
|
private int from;
|
||||||
private int count;
|
private int count;
|
||||||
private int category_id;
|
private int categoryId;
|
||||||
private int brand_id;
|
private int brandId;
|
||||||
private String city_code;
|
private String cityCode;
|
||||||
private String operator_id;
|
private String operatorId;
|
||||||
|
|
||||||
public ListIndexesRequest(int from, int count, int category_id, int brand_id,
|
public ListIndexesRequest(int from, int count, int categoryId, int brandId,
|
||||||
String city_code, String operator_id) {
|
String cityCode, String operatorId) {
|
||||||
this.from = from;
|
this.from = from;
|
||||||
this.count = count;
|
this.count = count;
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
this.brand_id = brand_id;
|
this.brandId = brandId;
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
this.operator_id = operator_id;
|
this.operatorId = operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ListIndexesRequest() {
|
public ListIndexesRequest() {
|
||||||
@@ -49,35 +49,35 @@ public class ListIndexesRequest extends BaseRequest {
|
|||||||
this.count = count;
|
this.count = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getCategory_id() {
|
public int getCategoryId() {
|
||||||
return category_id;
|
return categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCategory_id(int category_id) {
|
public void setCategoryId(int categoryId) {
|
||||||
this.category_id = category_id;
|
this.categoryId = categoryId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getBrand_id() {
|
public int getBrandId() {
|
||||||
return brand_id;
|
return brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setBrand_id(int brand_id) {
|
public void setBrandId(int brandId) {
|
||||||
this.brand_id = brand_id;
|
this.brandId = brandId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCity_code() {
|
public String getCityCode() {
|
||||||
return city_code;
|
return cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCity_code(String city_code) {
|
public void setCityCode(String cityCode) {
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOperator_id() {
|
public String getOperatorId() {
|
||||||
return operator_id;
|
return operatorId;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOperator_id(String operator_id) {
|
public void setOperatorId(String operatorId) {
|
||||||
this.operator_id = operator_id;
|
this.operatorId = operatorId;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,12 +14,12 @@ public class ListOperatorsRequest extends BaseRequest {
|
|||||||
|
|
||||||
private int from;
|
private int from;
|
||||||
private int count;
|
private int count;
|
||||||
private String city_code;
|
private String cityCode;
|
||||||
|
|
||||||
public ListOperatorsRequest(int from, int count, String city_code) {
|
public ListOperatorsRequest(int from, int count, String cityCode) {
|
||||||
this.from = from;
|
this.from = from;
|
||||||
this.count = count;
|
this.count = count;
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ListOperatorsRequest() {
|
public ListOperatorsRequest() {
|
||||||
@@ -42,11 +42,11 @@ public class ListOperatorsRequest extends BaseRequest {
|
|||||||
this.count = count;
|
this.count = count;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getCity_code() {
|
public String getCityCode() {
|
||||||
return city_code;
|
return cityCode;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setCity_code(String city_code) {
|
public void setCityCode(String cityCode) {
|
||||||
this.city_code = city_code;
|
this.cityCode = cityCode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ package net.irext.webapi.request;
|
|||||||
*/
|
*/
|
||||||
public class LoginRequest extends BaseRequest {
|
public class LoginRequest extends BaseRequest {
|
||||||
|
|
||||||
private String user_name;
|
private String userName;
|
||||||
private String password;
|
private String password;
|
||||||
|
|
||||||
public LoginRequest(String user_name, String password) {
|
public LoginRequest(String userName, String password) {
|
||||||
this.user_name = user_name;
|
this.userName = userName;
|
||||||
this.password = password;
|
this.password = password;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,12 +24,12 @@ public class LoginRequest extends BaseRequest {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getUser_name() {
|
public String getUserName() {
|
||||||
return user_name;
|
return userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setUser_name(String user_name) {
|
public void setUserName(String userName) {
|
||||||
this.user_name = user_name;
|
this.userName = userName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getPassword() {
|
public String getPassword() {
|
||||||
|
|||||||
Reference in New Issue
Block a user