|
|
@@ -536,13 +536,13 @@ public class HttpSend {
|
|
|
/**
|
|
|
* [DELETE]홈그룹 멤버 강퇴/초대 취소(홈그룹으로 초대받은 멤버의 정보를 변경한다.)
|
|
|
*
|
|
|
- * @param key_member_ids 멤버 ID 목록(','로 구분됨)
|
|
|
- * @param key_invitation_hist_ids 초대 멤버 ID 목록(','로 구분됨)
|
|
|
+ * @param keyMemberIds 멤버 ID 목록(','로 구분됨)
|
|
|
+ * @param keyNicknames 초대 멤버 핸드폰 번호 목록(','로 구분됨)
|
|
|
*/
|
|
|
- public void D_homegrp_members(String key_member_ids, String key_invitation_hist_ids) {
|
|
|
+ public void deleteHomegrpMembers(String keyMemberIds, String keyNicknames) {
|
|
|
|
|
|
String url = "";
|
|
|
- String interface_Id = "";
|
|
|
+ String interfaceId = "";
|
|
|
String sendType = "";
|
|
|
String body = "";
|
|
|
String fileParamName = "";
|
|
|
@@ -550,11 +550,12 @@ public class HttpSend {
|
|
|
ArrayList<HashMap<String, Object>> alPost = new ArrayList<HashMap<String, Object>>();
|
|
|
ArrayList<String> alFilePath = new ArrayList<String>();
|
|
|
try {
|
|
|
- interface_Id = util.getString(context, R.string.API_VERSION) + util.getString(context, R.string.SEND_D_homegrp_members);
|
|
|
+ interfaceId = util.getString(context, R.string.API_VERSION) + util.getString(context, R.string.SEND_D_homegrp_members, mAppConfig.getCustId(),
|
|
|
+ mAppConfig.getCtrtGroupId());
|
|
|
sendType = Constants.SEND_TYPE_DELETE;
|
|
|
- addParameter(alPost, Constants.KEY_MEMBER_IDS, key_member_ids);
|
|
|
- addParameter(alPost, Constants.KEY_INVITATION_HIST_IDS, key_invitation_hist_ids);
|
|
|
- setHttp(url, interface_Id, sendType, alPost, body, fileParamName, filePath, alFilePath);
|
|
|
+ addParameter(alPost, Constants.KEY_MEMBER_IDS, keyMemberIds);
|
|
|
+ addParameter(alPost, Constants.KEY_RECEIVE_PHONES, keyNicknames);
|
|
|
+ setHttp(url, interfaceId, sendType, alPost, body, fileParamName, filePath, alFilePath);
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
@@ -1621,31 +1622,31 @@ public class HttpSend {
|
|
|
if (sendType.equals(Constants.SEND_TYPE_POST)) {
|
|
|
uriVal = urlVal + interfaceId;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_POST;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), alPost,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), alPost,
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_POST1)) {
|
|
|
uriVal = urlVal + interfaceId;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_POST;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), body,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), body,
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_MULTIPART)) {
|
|
|
uriVal = urlVal + interfaceId;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_MULTIPART;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), alPost,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), alPost,
|
|
|
fileParamName, filePath, CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_MULTIPART1)) {
|
|
|
uriVal = urlVal + interfaceId;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_MULTIPART;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), alPost,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), alPost,
|
|
|
fileParamName, alFilePath, CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_DELETE)) {
|
|
|
uriVal = urlVal + interfaceId + sParam;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_DELETE;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), "",
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), "",
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
// } else if ( sendType.equals(Constants.SEND_TYPE_DELETE1) ) {
|
|
|
@@ -1657,19 +1658,19 @@ public class HttpSend {
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_GET)) {
|
|
|
uriVal = urlVal + interfaceId + sParam;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_GET;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), "",
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), "",
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_PUT)) {
|
|
|
uriVal = urlVal + interfaceId + sParam;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_PUT;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), alPost,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), alPost,
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
} else if (sendType.equals(Constants.SEND_TYPE_PUT1)) {
|
|
|
uriVal = urlVal + interfaceId + sParam;
|
|
|
sendTypeVal = CustomRequest.HTTP_METHOD_PUT;
|
|
|
- CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthToken(), body,
|
|
|
+ CustomRequest customRequest = new CustomRequest(bDialog, sendTypeVal, uriVal, mAppConfig.getAuthorization(), body,
|
|
|
CustomRequest.SEND_METHOD);
|
|
|
executeRequest(customRequest);
|
|
|
}
|