In this slide, I am telling about how we can connect our Xamarin.Android application to using data from API. From what is Rest API, JSON, how to generate JSON to C# Model and how to parse JSON to our C# Model
1. Connect
Xamarin.Android with
API
A L B I L A G A L I N G G R A P R A D A N A
R A D Y A L A B S
A L B I L A G A @ R A D Y A L A B S . C O M
@ A L B I L A G A
8. JSON to Model
• Check JSON and format JSON to here http://pro.jsonlint.com/ (optional)
• Convert JSON to C# model. To make it simple you can use http://json2csharp.com/ to make it
simple
• Deserialize JSON. Use Newtonsoft.Json package to make it simple