ForumsDevelopersTask field range


Task field range
Author Message
wilderwang

Posted: Aug 06, 2012
Score: 0 Reference
This may be documented elsewhere, but I cannot find it anywhere(including in the forum)

My WP7 application is getting an SerializationException saying "Value was either too large or too small for an Int32." when using http://api.toodledo.com/2/tasks/get.php, so I was wondering the range of each field for the task it return. As for these fields(id, folder, context, duedate, length, modified), are they signed/unsigned 32bit int or 64bit long?

My application sync correct for most of the account, but for some account it fail with this exception, so I would like a bit more clarification.

Thanks
Jake

Toodledo Founder
Posted: Aug 06, 2012
Score: 0 Reference
They are all 32 bit unsigned integers.
wilderwang

Posted: Aug 14, 2012
Score: 0 Reference
The network traffic log from my customer indicate the duetime field is not 32bit uint.

{
"id": "66978079",
...
"duetime": -62169966000,
...
}

What's the type of duetime when server output it? Is it wrong with the server?

For more information of the log, please contact me by mail.
Jake

Toodledo Founder
Posted: Aug 15, 2012
Score: 0 Reference
Ok. It seems that if a due-time is set, but a due-date is not, that it returns a crazy negative number instead of 0. Anything negative should be interpreted as 0. I will get this bug fixed.
wilderwang

Posted: Aug 20, 2012
Score: 0 Reference
Thanks for the reply. I'll apply a workaround in the client. Could you notify when this issue is fixed on the server-side?
Jake

Toodledo Founder
Posted: Aug 20, 2012
Score: 0 Reference
It will be fixed by the end of tomorrow.
You cannot reply yet

U Back to topic home

R Post a reply

To participate in these forums, you must be signed in.