コード例 #1
0
        public static CalendarListResource.PatchRequest SetColor(this CalendarListResource calendarList, string calendarId, string color)
        {
            var calListEntry = new CalendarListEntry {
                BackgroundColor = color
            };
            var setColourRequest = calendarList.Patch(calListEntry, calendarId);

            setColourRequest.ColorRgbFormat = true;
            return(setColourRequest);
        }
コード例 #2
0
 public static CalendarListResource.PatchRequest SetColor(this CalendarListResource calendarList, string calendarId, string colorId)
 => calendarList.Patch(new CalendarListEntry {
     ColorId = colorId
 }, calendarId);