Retrieving and Deserializing JSON in Your Xamarin.Forms App

Gerald Versluis
Gerald Versluis
15.9 هزار بار بازدید - 4 سال پیش - Getting data from a remote
Getting data from a remote server or REST API is a big part of any app. In this video we will learn how to get JSON data from an ASP.NET Core Web API and deserialize that. From there we will see how to show this in a CollectionView by using DataTemplates.

💝 Join this channel to get access to perks:
@jfversluis

🛑 Don't forget to subscribe to my channel for more cool content: https://www.youtube.com/GeraldVerslui...

🐦 Follow me on Twitter: Twitter: jfversluis

🔗 Links
Sample code repo: https://github.com/jfversluis/XFGetti...
Disable HTTPS Android: https://devblogs.microsoft.com/xamari...
Multiple run configuration: https://blog.verslu.is/productivity/v...
QuickType: https://quicktype.io
Disable HTTPS iOS & Android: Uploading Files From a Xamarin.Forms ...

Xamarin Forms Repo: https://github.com/xamarin/Xamarin.Forms

⏱ Timestamps
0:00 Intro
0:27 Sample App Outline
1:26 Sample ASP.NET Core Server Project Outline
4:00 Generate C# Class From JSON Data
7:18 Implement Getting JSON from Server
9:52 Important Note About Localhost!
11:48 Testing With HTTPS/SSL
14:23 Deserialize JSON Data
16:00 Run Sample! ... And Fail :(
17:00 Setup Server Sample App For Outside Connections
17:47 Run Sample! Great Success!
18:14 Making the Data Pretty With DataTemplates
19:37 Pretty Sample App
20:06 Outro

🎥 Video edited with Camtasia (ref): https://techsmith.z6rjha.net/AJoeD

🙋‍♂️ Also find my...
Twitter: Twitter: jfversluis
Blog: https://blog.verslu.is
Twitch: Twitch: jfversluis
All the rest: https://jfversluis.dev
4 سال پیش در تاریخ 1399/09/03 منتشر شده است.
15,975 بـار بازدید شده
... بیشتر