Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_android_sdk_maven_plugin
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Panagiotis Triantafyllou
2022-07-14 19:46:06 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
8751ea2ec097346bedefe7f0c2432a2933af2229
8751ea2e
1 parent
1673d1b5
fixed pacing
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/PacingDetails.java
warply_android_sdk/src/main/java/ly/warp/sdk/io/models/PacingDetails.java
View file @
8751ea2
...
...
@@ -155,13 +155,13 @@ public class PacingDetails {
this
.
total
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
TOTAL
));
}
if
(
json
.
optJSONObject
(
MONTH
)
!=
null
)
{
this
.
total
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
MONTH
));
this
.
month
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
MONTH
));
}
if
(
json
.
optJSONObject
(
WEEK
)
!=
null
)
{
this
.
total
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
WEEK
));
this
.
week
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
WEEK
));
}
if
(
json
.
optJSONObject
(
DAY
)
!=
null
)
{
this
.
total
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
DAY
));
this
.
day
=
new
PacingDetailsInner
(
json
.
optJSONObject
(
DAY
));
}
}
}
...
...
@@ -216,8 +216,8 @@ public class PacingDetails {
public
PacingDetailsInner
(
JSONObject
json
)
{
if
(
json
!=
null
)
{
this
.
goal
=
json
.
optDouble
(
GOAL
);
this
.
value
=
json
.
optDouble
(
VALLUE
);
this
.
goal
=
json
.
optDouble
(
GOAL
,
0.0d
);
this
.
value
=
json
.
optDouble
(
VALLUE
,
0.0d
);
if
(
json
.
optJSONArray
(
PER_DAY
)
!=
null
)
{
JSONArray
perDay
=
new
JSONArray
();
perDay
=
json
.
optJSONArray
(
PER_DAY
);
...
...
@@ -275,7 +275,7 @@ public class PacingDetails {
public
PacingDetailsDay
(
JSONObject
json
)
{
if
(
json
!=
null
)
{
this
.
day
=
json
.
optString
(
DAY
);
this
.
value
=
json
.
optDouble
(
VALLUE
);
this
.
value
=
json
.
optDouble
(
VALLUE
,
0.0d
);
}
}
...
...
Please
register
or
login
to post a comment