我的应用程序上有一个同步调度程序,我需要在时间表中显示Json结果
public partial class test : ContentPage
{
public Picker viewPicker;
public class Data
{
public DateTime date_start { get; set; }
public DateTime date_end { get; set; }
public string salle { get; set; }
public string professeur { get; set; }
public string lib1_formation { get; set; }
public string semaine { get; set; }
public string jours { get; set; }
public string module { get; set; }
public string groupe_de_classe { get; set; }
public string type { get; set; }
public string remarque { get; set; }
public string autre_professeur { get; set; }
public string autre_groupe { get; set; }
public string descrption { get; set; }
public Color Color { get; set; }
}
public test ()
{
SfSchedule schedule;
InitializeComponent();
Calend();
Rest();
}
public void Rest()
{
Restcours Rest_3 = new Restcours();
Rest Student = new Rest();
IRestResponse result_Student = Rest_3.Student("y.abasri@net.estia.fr");
var JResponse_student = JsonConvert.DeserializeObject<dynamic>(result_Student.Content);
Trace.Write(string.Format("Request completed in {0} ms, Response: {1} ", 50, "ffffffffffffffffffffffff"));
Console.WriteLine("This is the JSON RESULT --> " + JResponse_student);
List<Data> lstData = new List<Data>();
lstData.Add(JResponse_student.events);
Console.WriteLine("hada houwaa --->" + JResponse_student.data.events);
}
public void Calend()
{
schedule = new SfSchedule();
new ContentPage { Content = schedule };
schedule.FirstDayOfWeek = (int)DayOfWeek.Tuesday;
schedule.ScheduleView = ScheduleView.MonthView;
MonthViewSettings monthViewSettings = new MonthViewSettings();
monthViewSettings.AppointmentIndicatorCount = 2;
schedule.MonthViewSettings = monthViewSettings;
}
我没有找到任何有关将JSON链接到Syncfusion的教程或文档,而仅找到syncfusion链接:https://help.syncfusion.com/xamarin/sfschedule/getting-started
请帮助我谢谢