{
  "$schema": "https://ai.syncfusion.com/schema/registry-item.json",
  "name": "scheduler-sync-google-calendar",
  "framework": "aspnet-core",
  "type": "registry:component",
  "component": "Scheduler",
  "variant": "sync-google-calendar",
  "dependencies": [
    "Syncfusion.AspNetCore.Schedule"
  ],
  "description": "Scheduler integrates with Google Calendar data for displaying synchronized appointments.",
  "meta": {
    "essentialStudioRelease": "2026 Volume 3 (v35.1.37)",
    "license": "commercial-or-community",
    "licenseNote": "The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md",
    "requiresLicenseKey": true,
    "requiresServerEndpoint": false,
    "platformIndex": "https://ai.syncfusion.com/aspnet-core/llms.txt",
    "skillPack": "syncfusion/aspnetcore-ui-components-skills",
    "docs": "https://ai.syncfusion.com/gallery/aspnet-core/scheduler-sync-google-calendar.md"
  },
  "files": [
    {
      "target": "src/components/scheduler-sync-google-calendar/scheduler.cshtml",
      "content": "@page\n@namespace aspnet_core.Scheduler.SyncGoogleCalendar\n@model EJ2CoreSampleBrowser.Scheduler.SyncGoogleCalendar.SyncGoogleCalendarModel\n@using Syncfusion.EJ2\n\n    <div class=\"control-section\">\n        <div class=\"schedule-wrapper\">\n            <ejs-schedule id=\"schedule\" width=\"100%\" height=\"650px\" readonly=\"true\" timezone=\"UTC\" selectedDate=\"@Model.SelectedDate\">\n                <e-schedule-eventsettings dataSource=\"@Model.Appointments\"></e-schedule-eventsettings>\n                <e-schedule-views>\n                    <e-schedule-view option=\"Day\"></e-schedule-view>\n                    <e-schedule-view option=\"Week\"></e-schedule-view>\n                    <e-schedule-view option=\"WorkWeek\"></e-schedule-view>\n                    <e-schedule-view option=\"Month\"></e-schedule-view>\n                    <e-schedule-view option=\"Agenda\"></e-schedule-view>\n                </e-schedule-views>\n            </ejs-schedule>\n        </div>\n    </div>\n"
    },
    {
      "target": "src/components/scheduler-sync-google-calendar/scheduler.cshtml.cs",
      "content": "using System;\nusing System.Collections.Generic;\nusing Microsoft.AspNetCore.Mvc.RazorPages;\n\nnamespace EJ2CoreSampleBrowser.Scheduler.SyncGoogleCalendar\n{\n    public class SyncGoogleCalendarModel : PageModel\n    {\n        public DateTime SelectedDate { get; set; } = DateTime.Today;\n        // A small placeholder list of \"all-day\" events mirroring the shape\n        // of what you'd normally load from the Google Calendar API. Calling\n        // the real API requires a network connection and credentials, so we\n        // keep this stub self-contained.\n        public List<GoogleEvent> Appointments { get; set; }\n\n        public void OnGet()\n        {\n            Appointments = new List<GoogleEvent>\n            {\n                new GoogleEvent { Id = 1, Subject = \"All-day sample A\",  StartTime = DateTime.Today.AddDays(1).Date, EndTime = DateTime.Today.AddDays(1).AddDays(1).Date, IsAllDay = true },\n                new GoogleEvent { Id = 2, Subject = \"All-day sample B\",  StartTime = DateTime.Today.AddDays(3).Date, EndTime = DateTime.Today.AddDays(3).AddDays(1).Date, IsAllDay = true },\n            };\n        }\n    }\n\n    public class GoogleEvent\n    {\n        public int Id { get; set; }\n        public string Subject { get; set; }\n        public DateTime StartTime { get; set; }\n        public DateTime EndTime { get; set; }\n        public bool IsAllDay { get; set; }\n    }\n}\n"
    }
  ]
}