how do i loop through data for me to be able to consume their webservice? i am using cross platform

namespace INSPECTOR1
{
[XamlCompilation(XamlCompilationOptions.Compile)]
public class EmployerDtl
{
public string EmployerAccNo { get; set; }
public string EmployerPeriod { get; set; }
public string EmployerReturnAmount { get; set; }
public string EmployerAmountPaid { get; set; }
public string EmployerPenaltyAmountOut { get; set; }
public string EmployerBalance { get; set; }

}

public partial class viewemployerstatementsuccess : ContentPage
{
    public viewemployerstatementsuccess(JObject o)
    {
        InitializeComponent();
        txtPeriod.Text = (string)o.SelectToken("info[0].PERIOD");
        //PERIOD = (string)o.SelectToken("info[0].PERIOD");
        txtRamount.Text = (string)o.SelectToken("info[0].AMT_RETURN");
        txtAmountP.Text = (string)o.SelectToken("info[0].AMT_PAID");
        txtPamtOut.Text = (string)o.SelectToken("info[0].PEN_AMT_OUT");
        txtBalance.Text = (string)o.SelectToken("info[0].BALANCE");
        txtAccount.Text = "100005";

    }
    private async void OnReturnToInpsectorMainMenu(object sender, EventArgs e)
    {
        await Navigation.PushAsync(new MainMenu());
    }

}

}

Answers

Sign In or Register to comment.