Inconsistent use of boolean representation


delegatevoid

Recommended Posts

In all methods except for GetPreferences and SetPreferences 0 and  are used to
represent boolean values while in those two the values true and false are used.

 

It gets worse though, because in the Get/Set Preferences method there is one

parameter that is using and to represent boolean values: use_upnp

 

You guys should pick on or the other.

 

Update: This is actually another error in the documentation and the returned json does use 1 and 0 to represent true or false

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.