public override IEnumerable <Item> Perform(IEnumerable <Item> items, IEnumerable <Item> modifierItems) { string search_text; search_text = (items.First() as ITextItem).Text; return(GCal.SearchEvents(modifierItems.Cast <GCalendarItem> (), search_text).Cast <Item> ()); }
protected override bool Validate(string username, string password) { if (ValidateUsername(username) && password.Length > 0) { return(GCal.TryConnect(username, password)); } return(false); }
public override IEnumerable <Item> ChildrenOfItem(Item parent) { return(GCal.EventsForCalendar(parent as GCalendarItem).Cast <Item> ()); }
public static GCalendarEventItem NewEvent(GCalendarItem calendar, string data) { return(GCal.NewEvent(calendar, data)); }