Skythrust
Member
- Jul 9, 2019
- 133
- 7
Hi All,
I have these two kind of libraries;
I was wondering how I can call source, max_verz and rest_verz inside the Api class, I was thinking I could call them via a foreach to use them in a WPF application.
Whatever I try I will get the messages that the JSON is incorrect. but the JSON is from a third party integrator which works with other systems.
I have these two kind of libraries;
C#:
public class Root
{
public List<Liveweer> liveweer { get; } = new List<Liveweer>();
public List<WkVerw> wk_verw { get; } = new List<WkVerw>();
public List<UurVerw> uur_verw { get; } = new List<UurVerw>();
public List<Api> api { get; } = new List<Api>();
}
public class Api
{
public string source { get; set; }
public int max_verz { get; set; }
public int rest_verz { get; set; }
}
I was wondering how I can call source, max_verz and rest_verz inside the Api class, I was thinking I could call them via a foreach to use them in a WPF application.
Whatever I try I will get the messages that the JSON is incorrect. but the JSON is from a third party integrator which works with other systems.