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
d176dd9a
Commit
d176dd9a
authored
Aug 28, 2022
by
NGUYEN HOANG SON
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implement cmd goSendMessage, goDistanceSupport, goChat, actionPushMessage
parent
9ba619f9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
1 deletions
+39
-1
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
+6
-0
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
+1
-1
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
+32
-0
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/common/constant/ABookKeys.java
View file @
d176dd9a
...
@@ -102,6 +102,10 @@ public class ABookKeys {
...
@@ -102,6 +102,10 @@ public class ABookKeys {
public
static
final
String
RESET_SEARCH
=
"resetSearch"
;
public
static
final
String
RESET_SEARCH
=
"resetSearch"
;
public
static
final
String
CHANGE_OPERATION_GROUP_MASTER
=
"changeOperationGroupMaster"
;
public
static
final
String
CHANGE_OPERATION_GROUP_MASTER
=
"changeOperationGroupMaster"
;
public
static
final
String
SAVE_JSON
=
"saveJson"
;
public
static
final
String
SAVE_JSON
=
"saveJson"
;
public
static
final
String
GO_SEND_MESSAGE
=
"goSendMessage"
;
public
static
final
String
GO_DISTANCE_SUPPORT
=
"goDistanceSupport"
;
public
static
final
String
GO_CHAT
=
"goChat"
;
public
static
final
String
ACTION_PUSH_MESSAGE
=
"actionPushMessage"
;
}
}
...
@@ -240,5 +244,7 @@ public class ABookKeys {
...
@@ -240,5 +244,7 @@ public class ABookKeys {
public
static
final
String
JSON_NAME
=
"jsonName"
;
public
static
final
String
JSON_NAME
=
"jsonName"
;
public
static
final
String
JSON_DATA
=
"jsonData"
;
public
static
final
String
JSON_DATA
=
"jsonData"
;
public
static
final
String
PUSH_MESSAGE_ID
=
"pushMessageId"
;
public
static
final
String
PUSH_MESSAGE_ACTION
=
"pushMessageAction"
;
}
}
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/common/activity/ABVAuthenticatedActivity.java
View file @
d176dd9a
...
@@ -947,7 +947,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
...
@@ -947,7 +947,7 @@ public abstract class ABVAuthenticatedActivity extends ABVActivity implements Co
}
}
}
}
pr
ivate
void
showOperationSelectDialog
()
{
pr
otected
void
showOperationSelectDialog
()
{
OperationDao
operationDao
=
AbstractDao
.
getDao
(
OperationDao
.
class
);
OperationDao
operationDao
=
AbstractDao
.
getDao
(
OperationDao
.
class
);
mOperationSelectDialog
=
new
Dialog
(
this
);
mOperationSelectDialog
=
new
Dialog
(
this
);
mOperationSelectDialog
.
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
mOperationSelectDialog
.
requestWindowFeature
(
Window
.
FEATURE_NO_TITLE
);
...
...
ABVJE_UI_Android/src/jp/agentec/abook/abv/ui/home/activity/OperationListActivity.java
View file @
d176dd9a
...
@@ -408,6 +408,20 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -408,6 +408,20 @@ public class OperationListActivity extends ABVUIActivity {
saveJson
(
jsonParam
.
getString
(
ABookKeys
.
JSON_NAME
),
jsonParam
.
getString
(
ABookKeys
.
JSON_DATA
));
saveJson
(
jsonParam
.
getString
(
ABookKeys
.
JSON_NAME
),
jsonParam
.
getString
(
ABookKeys
.
JSON_DATA
));
}
}
break
;
break
;
case
ABookKeys
.
CMD_KEY
.
GO_SEND_MESSAGE
:
showSendMessage
();
break
;
case
ABookKeys
.
CMD_KEY
.
GO_DISTANCE_SUPPORT
:
showDistanceSupport
();
break
;
case
ABookKeys
.
CMD_KEY
.
GO_CHAT
:
showChat
();
break
;
case
ABookKeys
.
CMD_KEY
.
ACTION_PUSH_MESSAGE
:
if
(
jsonParam
.
has
(
ABookKeys
.
PUSH_MESSAGE_ID
))
{
actionPushMessage
(
jsonParam
.
getString
(
ABookKeys
.
PUSH_MESSAGE_ACTION
),
jsonParam
.
getInt
(
ABookKeys
.
PUSH_MESSAGE_ID
));
}
break
;
}
}
}
}
}
}
...
@@ -1761,4 +1775,22 @@ public class OperationListActivity extends ABVUIActivity {
...
@@ -1761,4 +1775,22 @@ public class OperationListActivity extends ABVUIActivity {
};
};
}
}
private
void
showSendMessage
()
{
showOperationSelectDialog
();
}
private
void
showDistanceSupport
()
{
ActivityHandlingHelper
.
getInstance
().
startMeetingActivity
();
}
private
void
showChat
()
{
ActivityHandlingHelper
.
getInstance
().
startChatWebViewActivity
(
new
Long
(
0
),
""
,
ChatWebViewActivity
.
class
.
getName
(),
OperationListActivity
.
class
.
getName
());
}
private
void
actionPushMessage
(
String
action
,
int
pushMessageId
)
{
if
(
action
.
equals
(
"read"
))
{
pushMessageLogic
.
updateReadingFlg
(
pushMessageId
);
}
}
}
}
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