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
cc44e47a
Commit
cc44e47a
authored
May 11, 2021
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[チャットルーム]のチャット履歴から現在協業が進行中なのか終了されたのか確認できる
parent
e9ad4810
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
79 additions
and
7 deletions
+79
-7
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
+15
-7
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/FinishCollaborationParameters.java
+59
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
+5
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/AcmsClient.java
View file @
cc44e47a
...
...
@@ -62,6 +62,7 @@ import jp.agentec.abook.abv.bl.acms.client.parameters.EnterpriseLoginParameters;
import
jp.agentec.abook.abv.bl.acms.client.parameters.EnterpriseNewLoginParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.FavoriteGroupParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.FavoriteUserParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.FinishCollaborationParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.GetApertureMasterDataParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.GetContentParameters
;
import
jp.agentec.abook.abv.bl.acms.client.parameters.GetEnqueteReplyParameters
;
...
...
@@ -795,10 +796,16 @@ public class AcmsClient implements AcmsClientResponseListener {
* @throws NetworkDisconnectedException
* @throws AcmsException
*/
public
ArchiveDetailJSON
joinCollaboration
(
String
sid
,
Integer
roomId
)
throws
NetworkDisconnectedException
,
AcmsException
{
public
void
joinCollaboration
(
String
sid
,
Integer
roomId
)
throws
NetworkDisconnectedException
,
AcmsException
{
HttpResponse
response
=
send
(
AcmsApis
.
ApigetCollaboration
,
new
JoinCollaborationParameters
(
sid
,
AcmsApis
.
CollaborationCmds
.
join
,
roomId
));
ArchiveDetailJSON
json
=
new
ArchiveDetailJSON
(
response
.
httpResponseBody
);
return
json
;
if
(
response
.
httpResponseCode
!=
200
)
{
}
}
public
void
finishCollaboration
(
String
sid
,
int
roomId
)
throws
NetworkDisconnectedException
,
AcmsException
{
HttpResponse
response
=
send
(
AcmsApis
.
ApigetCollaboration
,
new
FinishCollaborationParameters
(
sid
,
AcmsApis
.
CollaborationCmds
.
finish
,
roomId
));
}
/**
...
...
@@ -813,10 +820,11 @@ public class AcmsClient implements AcmsClientResponseListener {
* @throws NetworkDisconnectedException
* @throws AcmsException
*/
public
ArchiveDetailJSON
inviteCollaboration
(
String
sid
,
Integer
roomId
,
String
roomName
,
String
inveitedUserIds
,
String
collaborationType
)
throws
NetworkDisconnectedException
,
AcmsException
{
public
void
inviteCollaboration
(
String
sid
,
Integer
roomId
,
String
roomName
,
String
inveitedUserIds
,
String
collaborationType
)
throws
NetworkDisconnectedException
,
AcmsException
{
HttpResponse
response
=
send
(
AcmsApis
.
ApigetCollaboration
,
new
InviteCollaborationParameters
(
sid
,
AcmsApis
.
CollaborationCmds
.
invite
,
roomId
,
roomName
,
inveitedUserIds
,
collaborationType
));
ArchiveDetailJSON
json
=
new
ArchiveDetailJSON
(
response
.
httpResponseBody
);
return
json
;
if
(
response
.
httpResponseCode
!=
200
)
{
}
}
/**
...
...
@@ -1251,7 +1259,7 @@ public class AcmsClient implements AcmsClientResponseListener {
public
Date
getLastPresentTime
()
{
return
lastPresentTime
;
}
private
class
HttpTaskWorker
<
T
extends
HttpParameterObject
>
extends
Thread
{
private
String
methodName
=
null
;
private
boolean
result
=
false
;
...
...
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/parameters/FinishCollaborationParameters.java
0 → 100644
View file @
cc44e47a
package
jp
.
agentec
.
abook
.
abv
.
bl
.
acms
.
client
.
parameters
;
import
jp.agentec.adf.net.http.HttpParameterObject
;
/**
* ACMSのAPIに渡す共通的なパラメータを格納します。ACMSのAPIのパラメータ用クラスを作成するときはこのクラスを継承してください。<br>
* ただし、このクラスはログイン状態の確認用として使われる {@link FinishCollaborationParameters#sid} を持っているため、ログイン用のパラメータ {@link MobileLoginParameters} は、このクラスを継承する必要はありません。
* @author lee-mk
* @version 1.0.0
*/
public
class
FinishCollaborationParameters
extends
HttpParameterObject
{
/**
* セッションID
* @since 1.0.0
*/
private
String
sid
;
private
String
cmd
;
private
Integer
roomId
;
/**
* {@link FinishCollaborationParameters} のインスタンスを初期化します。
* @param sid ログインした時のセッションIDです。
* @param cmd Apiリクエストに必要なコマンド(ABOOK COMM専用)。
* @since 1.0.0
*/
public
FinishCollaborationParameters
(
String
sid
,
String
cmd
,
Integer
roomId
)
{
this
.
sid
=
sid
;
this
.
cmd
=
cmd
;
this
.
roomId
=
roomId
;
}
/**
* セッションIDを返します。
* @return ログインした時のセッションIDです。
* @since 1.0.0
*/
public
String
getSid
()
{
return
sid
;
}
/**
* コマンドを返します。
* @return ログインした時のセッションIDです。
* @since 1.0.0
*/
public
String
getCmd
()
{
return
cmd
;
}
/**
* roomIdを返します。
* @return roomId
* @since 1.0.0
*/
public
Integer
getRoomId
()
{
return
roomId
;
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/ChatWebviewActivity.java
View file @
cc44e47a
...
...
@@ -1379,6 +1379,11 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
}
@JavascriptInterface
public
void
finishCollaboration
()
throws
NetworkDisconnectedException
,
AcmsException
{
AcmsClient
.
getInstance
(
ABVEnvironment
.
getInstance
().
networkAdapter
).
finishCollaboration
(
sid
,
roomId
.
intValue
());
}
@JavascriptInterface
public
String
getCollaborationJoinFlg
()
{
return
collaborationJoinFlg
.
toString
();
}
...
...
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