API json properties

API json properties

in API Development

Posted by: Kurotsuki.5364

Kurotsuki.5364

To anyone who is using the API to build 3rd-party apps, I have a question (I am working in C#):

Example: you need to get an item. You gotta create a class that will be used to gather the info from the JSON returned by the API.

What I’d like to know is: does your class needs to implement every single property of the JSON object returned or you could just implement the properties you need for your own app only?

(A good example of this, recipes have a property that states how many milliseconds it takes to do the crafting, but I don’t need this information for my app.)

API json properties

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

You can implement only the properties you need.