Commit acbe02e3 by Lee Munkyeong

協業参加

parent 761d62a2
...@@ -785,6 +785,21 @@ public class AcmsClient implements AcmsClientResponseListener { ...@@ -785,6 +785,21 @@ public class AcmsClient implements AcmsClientResponseListener {
} }
/** /**
* 協業参加
*
* @param sid
* @param roomId
* @return
* @throws NetworkDisconnectedException
* @throws AcmsException
*/
/*public ArchiveDetailJSON joinCollaboration(String sid, Integer roomId) throws NetworkDisconnectedException, AcmsException {
//HttpResponse response = send(AcmsApis.ApigetArchive, new ArchiveDetailRequestParameters(sid, AcmsApis.ArchiveCmds.getArchiveDetail, archiveId, collaborationDetailId));
//ArchiveDetailJSON json = new ArchiveDetailJSON(response.httpResponseBody);
//return json;
}*/
/**
* 作業報告データ送信 * 作業報告データ送信
* @param sid * @param sid
* @param operationId * @param operationId
......
...@@ -1257,67 +1257,14 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -1257,67 +1257,14 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@JavascriptInterface @JavascriptInterface
public void joinCollaboration(String collaborationType) { public void joinCollaboration(String collaborationType) {
collaborationJoinFlg = ABookCommConstants.FLAG.COLLABORATION_JOIN_FLG.JOIN; collaborationJoinFlg = ABookCommConstants.FLAG.COLLABORATION_JOIN_FLG.JOIN;
switch (Integer.parseInt(collaborationType)) { //AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getArchiveDetail(sid, Integer.parseInt(archiveId), archiveDto.collaborationDetailId);
case 0: moveCollaborationScreen(Integer.parseInt(collaborationType));
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(VOICE_COLLABORATION_PAGE_URL);
}
});
break;
case 2:
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(PICTURE_COLLABORATION_PAGE_URL);
}
});
break;
case 3:
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(VIDEO_COLLABORATION_PAGE_URL);
}
});
break;
default:
break;
}
} }
@JavascriptInterface @JavascriptInterface
public void startCollaboration(String collaborationType) { public void startCollaboration(String collaborationType) {
collaborationJoinFlg = ABookCommConstants.FLAG.COLLABORATION_JOIN_FLG.CREATE; collaborationJoinFlg = ABookCommConstants.FLAG.COLLABORATION_JOIN_FLG.CREATE;
switch (Integer.parseInt(collaborationType)) { moveCollaborationScreen(Integer.parseInt(collaborationType));
case 0:
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(VOICE_COLLABORATION_PAGE_URL);
}
});
break;
case 2:
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(PICTURE_COLLABORATION_PAGE_URL);
}
});
break;
case 3:
mChatWebView.post(new Runnable() {
@Override
public void run() {
mChatWebView.loadUrl(VIDEO_COLLABORATION_PAGE_URL);
}
});
break;
default:
break;
}
} }
@JavascriptInterface @JavascriptInterface
...@@ -1377,7 +1324,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity { ...@@ -1377,7 +1324,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
return result; return result;
} }
private void moveCollaborationScreen(Integer collaborationType) throws NetworkDisconnectedException, AcmsException { private void moveCollaborationScreen(Integer collaborationType) {
switch (collaborationType) { switch (collaborationType) {
case 0: case 0:
mChatWebView.post(new Runnable() { mChatWebView.post(new Runnable() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment