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
10e245df
Commit
10e245df
authored
Apr 15, 2026
by
Kang Donghun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#73190 更新チェック用API(Android)コード整理
parent
4945c7ab
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
9 deletions
+2
-9
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ShopSyncWatermarkJSON.java
+2
-9
No files found.
ABVJE_BL/src/jp/agentec/abook/abv/bl/acms/client/json/ShopSyncWatermarkJSON.java
View file @
10e245df
...
@@ -12,8 +12,6 @@ public class ShopSyncWatermarkJSON extends AcmsCommonJSON {
...
@@ -12,8 +12,6 @@ public class ShopSyncWatermarkJSON extends AcmsCommonJSON {
public
static
final
String
NeedsFullSync
=
"needsFullSync"
;
public
static
final
String
NeedsFullSync
=
"needsFullSync"
;
public
static
final
String
LastChangedAt
=
"lastChangedAt"
;
public
static
final
String
LastChangedAt
=
"lastChangedAt"
;
// 0: false, 1: true
public
int
needsFullSyncValue
;
public
boolean
needsFullSync
;
public
boolean
needsFullSync
;
public
String
lastChangedAt
;
public
String
lastChangedAt
;
...
@@ -25,24 +23,19 @@ public class ShopSyncWatermarkJSON extends AcmsCommonJSON {
...
@@ -25,24 +23,19 @@ public class ShopSyncWatermarkJSON extends AcmsCommonJSON {
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
protected
void
parse
(
JSONObject
json
)
throws
JSONValidationException
{
super
.
parse
(
json
);
super
.
parse
(
json
);
// default: fail-safe true (field may be absent)
// default: fail-safe true (field may be absent)
needsFullSyncValue
=
1
;
needsFullSync
=
true
;
needsFullSync
=
true
;
Object
rawNeedsFullSync
=
null
;
if
(
json
.
has
(
NeedsFullSync
))
{
if
(
json
.
has
(
NeedsFullSync
))
{
Object
value
=
json
.
get
(
NeedsFullSync
);
Object
value
=
json
.
get
(
NeedsFullSync
);
rawNeedsFullSync
=
value
;
if
(
value
!=
null
)
{
if
(
value
!=
null
)
{
// org.json.adf 환경에서 타입이 섞여 들어오므로 문자열 기준으로 0/1 정규화
String
lowerValue
=
String
.
valueOf
(
value
).
trim
().
toLowerCase
();
String
lowerValue
=
String
.
valueOf
(
value
).
trim
().
toLowerCase
();
if
(
"true"
.
equals
(
lowerValue
)
||
"1"
.
equals
(
lowerValue
))
{
if
(
"true"
.
equals
(
lowerValue
)
||
"1"
.
equals
(
lowerValue
))
{
needsFullSync
Value
=
1
;
needsFullSync
=
true
;
}
else
if
(
"false"
.
equals
(
lowerValue
)
||
"0"
.
equals
(
lowerValue
))
{
}
else
if
(
"false"
.
equals
(
lowerValue
)
||
"0"
.
equals
(
lowerValue
))
{
needsFullSync
Value
=
0
;
needsFullSync
=
false
;
}
}
}
}
}
}
needsFullSync
=
needsFullSyncValue
==
1
;
lastChangedAt
=
getStringOrNull
(
json
,
LastChangedAt
);
lastChangedAt
=
getStringOrNull
(
json
,
LastChangedAt
);
}
}
}
}
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