Commit b18009f9 by Lee Munkyeong

連絡先画面修正

parent 2a46bae2
......@@ -565,8 +565,8 @@ public class AcmsClient implements AcmsClientResponseListener {
* @throws NetworkDisconnectedException
* @throws AcmsException
*/
public GroupListJSON getGroupInfo(String sid) throws NetworkDisconnectedException, AcmsException {
HttpResponse response = send(AcmsApis.ApigetUser, new AcmsParameters(sid,AcmsApis.Cmds.getGroupInfo));
public GroupListJSON getGroupInfo(String sid,String groupId) throws NetworkDisconnectedException, AcmsException {
HttpResponse response = send(AcmsApis.ApigetUser, new AcmsParameters(sid,AcmsApis.Cmds.getGroupInfo,groupId));
GroupListJSON json = new GroupListJSON(response.httpResponseBody);
return json;
}
......
......@@ -15,6 +15,7 @@ public class AcmsParameters extends HttpParameterObject {
*/
private String sid;
private String cmd;
private String groupId;
/**
* {@link AcmsParameters} のインスタンスを初期化します。
* @param sid ログインした時のセッションIDです。
......@@ -35,6 +36,12 @@ public class AcmsParameters extends HttpParameterObject {
this.cmd = cmd;
}
public AcmsParameters(String sid, String cmd, String groupId) {
this.sid = sid;
this.cmd = cmd;
this.groupId = groupId;
}
/**
* セッションIDを返します。
* @return ログインした時のセッションIDです。
......@@ -52,4 +59,8 @@ public class AcmsParameters extends HttpParameterObject {
public String getCmd() {
return cmd;
}
public String getGroupId() {
return groupId;
}
}
package jp.agentec.abook.abv.bl.data.tables;
import java.util.ArrayList;
import java.util.List;
import jp.agentec.abook.abv.bl.common.db.SQLiteDatabase;
public class RChatRoomShopMember extends SQLiteTableScript {
public RChatRoomShopMember() {
}
@Override
public List<String> getCreateScript(int version) {
List<String> ddl = new ArrayList();
StringBuffer sql = new StringBuffer();
sql.append(" create table r_chat_room_shop_member ( ");
sql.append(" chat_room_id INTEGER NOT NULL ");
sql.append(" , shop_member_id INTEGER NOT NULL ");
sql.append(" , PRIMARY KEY (chat_room_id, shop_member_id) ");
sql.append(" ) ");
ddl.add(sql.toString());
return ddl;
}
@Override
public List<String> getUpgradeScript(int oldVersion, int newVersion) {
return null;
}
@Override
public List<String> getMigrationScript(SQLiteDatabase databaseConnection, int oldVersion, int newVersion, Object... params) {
return null;
}
}
\ No newline at end of file
......@@ -711,8 +711,7 @@ public class ChatWebviewActivity extends ParentWebViewActivity {
@JavascriptInterface
public void updateGroupInfo() throws NetworkDisconnectedException, AcmsException {
GroupListJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getGroupInfo(sid);
GroupListJSON resultJson = AcmsClient.getInstance(ABVEnvironment.getInstance().networkAdapter).getGroupInfo(sid,"0");
communicationLogic.updateGroup(resultJson.groupList);
}
}
......
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