Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
abook_check
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abook_android
abook_check
Commits
4ce1d42a
Commit
4ce1d42a
authored
Sep 23, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement requireTerms API
parent
705ee87e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
53 additions
and
0 deletions
+53
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+8
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/RequireTermsJSON.java
+19
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/RequireTermsParameters.java
+22
-0
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/AcmsApis.java
+4
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
4ce1d42a
...
...
@@ -40,6 +40,7 @@ import jp.agentec.abook.abv.bl.acms.client.json.OperationGroupMasterJSON;
import
jp.agentec.abook.abv.bl.acms.client.json.OperationListJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.ProcessDataJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.RequirePasswordChangeJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.RequireTermsJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.ResultJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.RoomJSON
;
import
jp.agentec.abook.abv.bl.acms.client.json.RoomListJSON
;
...
...
@@ -83,6 +84,7 @@ import jp.agentec.abook.abv.bl.acms.client.parameters.JoinCollaborationParameter
import
jp.agentec.abook.abv.bl.acms.client.parameters.NewAppStoreLoginParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.PasswordChangeParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.PostEnqueteReplyParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.RequireTermsParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.SendPushMessageParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.ServerTimeParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.UpdateDeviceTokenParameters
;
...
...
@@ -1112,6 +1114,12 @@ public class AcmsClient implements AcmsClientResponseListener {
return
new
TermsOfUseJson
(
response
.
httpResponseBody
);
}
//terms
public
RequireTermsJSON
requireTerms
(
RequireTermsParameters
param
)
throws
NetworkDisconnectedException
,
AcmsException
{
HttpResponse
response
=
send
(
AcmsApis
.
ApiUrlRequireTerms
,
param
);
return
new
RequireTermsJSON
(
response
.
httpResponseBody
);
}
/**********************************************************************************************/
/** 以下、共用メソッド---------------------------------------------------------------------- **/
/**********************************************************************************************/
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/RequireTermsJSON.java
0 → 100644
View file @
4ce1d42a
package
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
json
;
import
org.json.adf.JSONException
;
import
org.json.adf.JSONObject
;
import
jp.agentec.abook.abv.bl.common.exception.AcmsException
;
import
jp.agentec.abook.abv.bl.common.exception.JSONValidationException
;
public
class
RequireTermsJSON
extends
AcmsCommonJSON
{
public
RequireTermsJSON
(
String
jsonString
)
throws
AcmsException
{
super
(
jsonString
);
}
@Override
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
,
JSONException
{
super
.
parse
(
json
);
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/RequireTermsParameters.java
0 → 100644
View file @
4ce1d42a
package
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
parameters
;
import
jp.agentec.adf.net.http.HttpParameterObject
;
import
jp.agentec.adf.util.StringUtil
;
public
class
RequireTermsParameters
extends
HttpParameterObject
{
private
String
sid
;
private
int
deviceTypeId
;
private
String
deviceId
;
public
RequireTermsParameters
(
String
sid
,
int
deviceTypeId
,
String
deviceId
)
{
if
(
StringUtil
.
isNullOrWhiteSpace
(
sid
))
{
throw
new
IllegalArgumentException
(
"argument sid not allowed null or white space."
);
}
if
(
StringUtil
.
isNullOrWhiteSpace
(
deviceId
))
{
throw
new
IllegalArgumentException
(
"argument deviceId not allowed null or white space."
);
}
this
.
sid
=
sid
;
this
.
deviceTypeId
=
deviceTypeId
;
this
.
deviceId
=
deviceId
;
}
}
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/type/AcmsApis.java
View file @
4ce1d42a
...
...
@@ -240,6 +240,10 @@ public class AcmsApis {
public
static
final
String
GetTaskFileUrlFormat
=
"%s/%s/checkapi/getTaskFile"
;
//terms
public
static
final
String
ApiUrlRequireTerms
=
"requireTerms"
;
public
static
final
String
ApiUrlAgreeTerms
=
"agreeTerms"
;
/**
* APIのURLを完成します。
* @param host ACMSのFQDNです。
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment