Clarify comment.

This commit is contained in:
dosiecki 2014-09-10 14:33:19 -07:00
parent 06ca37cd25
commit f8ad205e9f

View file

@ -123,13 +123,13 @@ public class APIManager {
values.put(APIConstants.PARAMETER_FEEDID, feedId); values.put(APIConstants.PARAMETER_FEEDID, feedId);
} }
if (includeOlder != null) { if (includeOlder != null) {
// the API vends microsecond timestamps but for this call it requires milliseconds // the app uses milliseconds but the API wants seconds
long cut = includeOlder.longValue(); long cut = includeOlder.longValue();
values.put(APIConstants.PARAMETER_CUTOFF_TIME, Long.toString(cut/1000L)); values.put(APIConstants.PARAMETER_CUTOFF_TIME, Long.toString(cut/1000L));
values.put(APIConstants.PARAMETER_DIRECTION, APIConstants.VALUE_OLDER); values.put(APIConstants.PARAMETER_DIRECTION, APIConstants.VALUE_OLDER);
} }
if (includeNewer != null) { if (includeNewer != null) {
// the API vends microsecond timestamps but for this call it requires milliseconds // the app uses milliseconds but the API wants seconds
long cut = includeNewer.longValue(); long cut = includeNewer.longValue();
values.put(APIConstants.PARAMETER_CUTOFF_TIME, Long.toString(cut/1000L)); values.put(APIConstants.PARAMETER_CUTOFF_TIME, Long.toString(cut/1000L));
values.put(APIConstants.PARAMETER_DIRECTION, APIConstants.VALUE_NEWER); values.put(APIConstants.PARAMETER_DIRECTION, APIConstants.VALUE_NEWER);