connect xamarin.android to web services

Post on 07-Apr-2017

176 Views

Category:

Mobile

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Connect Xamarin.Android with APIALB IL AGA L INGGRA PRADANARADYA L ABS ALB I L AGA@RADYAL ABS .COM @ALB IL AGA

API

Image from : https://www.arxan.com

REST API

Image from : http://maxoffsky.com

Connect To API Sample Code

Connect To API Result

Connect To API (Demo)

JSON

Image from : http://datasymphony.com.au

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

JSON Example

JSON Parse Sample Code

JSON Parse Result

Build Model (Demo)

top related