mirror of
https://github.com/nerzhul/ownCloud-SMS-App.git
synced 2025-06-30 03:06:11 +00:00
drop useless createGetSmsIdListWithStateRequest call & api v2 things
* rename OC_GET_PHONELIST to OC_V2_GET_PHONELIST * declare OC_V2_GET_MESSAGES * declare OC_V2_GET_MESSAGES_PHONE
This commit is contained in:
parent
eb7786de0b
commit
8da282db98
@ -200,17 +200,13 @@ public class OCSMSOwnCloudClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public GetMethod createGetPhoneListRequest() {
|
public GetMethod createGetPhoneListRequest() {
|
||||||
return createGetRequest(OCSMSOwnCloudClient.OC_GET_PHONELIST);
|
return createGetRequest(OCSMSOwnCloudClient.OC_V2_GET_PHONELIST);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetMethod createGetSmsIdListRequest() {
|
public GetMethod createGetSmsIdListRequest() {
|
||||||
return createGetRequest(OCSMSOwnCloudClient.OC_GET_ALL_SMS_IDS);
|
return createGetRequest(OCSMSOwnCloudClient.OC_GET_ALL_SMS_IDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
public GetMethod createGetSmsIdListWithStateRequest() {
|
|
||||||
return createGetRequest(OCSMSOwnCloudClient.OC_GET_ALL_SMS_IDS_WITH_STATUS);
|
|
||||||
}
|
|
||||||
|
|
||||||
public GetMethod createGetLastSmsTimestampRequest() {
|
public GetMethod createGetLastSmsTimestampRequest() {
|
||||||
return createGetRequest(OCSMSOwnCloudClient.OC_GET_LAST_MSG_TIMESTAMP);
|
return createGetRequest(OCSMSOwnCloudClient.OC_GET_LAST_MSG_TIMESTAMP);
|
||||||
}
|
}
|
||||||
@ -391,12 +387,16 @@ public class OCSMSOwnCloudClient {
|
|||||||
private Integer _serverAPIVersion;
|
private Integer _serverAPIVersion;
|
||||||
private JSONObject _jsonQueryBuffer;
|
private JSONObject _jsonQueryBuffer;
|
||||||
|
|
||||||
|
// API v1 calls
|
||||||
private static final String OC_GET_VERSION = "/index.php/apps/ocsms/get/apiversion?format=json";
|
private static final String OC_GET_VERSION = "/index.php/apps/ocsms/get/apiversion?format=json";
|
||||||
private static final String OC_GET_ALL_SMS_IDS = "/index.php/apps/ocsms/get/smsidlist?format=json";
|
private static final String OC_GET_ALL_SMS_IDS = "/index.php/apps/ocsms/get/smsidlist?format=json";
|
||||||
private static final String OC_GET_ALL_SMS_IDS_WITH_STATUS = "/index.php/apps/ocsms/get/smsidstate?format=json";
|
|
||||||
private static final String OC_GET_LAST_MSG_TIMESTAMP = "/index.php/apps/ocsms/get/lastmsgtime?format=json";
|
private static final String OC_GET_LAST_MSG_TIMESTAMP = "/index.php/apps/ocsms/get/lastmsgtime?format=json";
|
||||||
private static final String OC_PUSH_ROUTE = "/index.php/apps/ocsms/push?format=json";
|
private static final String OC_PUSH_ROUTE = "/index.php/apps/ocsms/push?format=json";
|
||||||
private static final String OC_GET_PHONELIST = "/index.php/apps/ocsms/get/phones/numberlist?format=json";
|
|
||||||
|
// API v2 calls
|
||||||
|
private static final String OC_V2_GET_PHONELIST = "/index.php/apps/ocsms/api/v2/phones/list?format=json";
|
||||||
|
private static final String OC_V2_GET_MESSAGES ="/index.php/apps/ocsms/api/v2/messages/[START]/[LIMIT]?format=json";
|
||||||
|
private static final String OC_V2_GET_MESSAGES_PHONE ="/index.php/apps/ocsms/api/v2/messages/[PHONENUMBER]/[START]/[LIMIT]?format=json";
|
||||||
|
|
||||||
private static final String TAG = OCSMSOwnCloudClient.class.getSimpleName();
|
private static final String TAG = OCSMSOwnCloudClient.class.getSimpleName();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user