コード例 #1
0
        public static EventFeed QueryGCalFreeBusy(
            string gcalUserEmail)
        {
            IConnectionThrottle throttle = new FakeThrottle();
            GCalGateway gw = new GCalGateway(ConfigCache.GoogleAppsLogin,
                                             ConfigCache.GoogleAppsPassword,
                                             ConfigCache.GoogleAppsDomain,
                                             throttle);

            DateTime now = DateTime.Now;
            DateTime start = now.AddDays(-7);
            DateTime end = now.AddDays(+7);
            DateTimeRange range = new DateTimeRange(start, end);

            EventFeed feed = gw.QueryGCal(gcalUserEmail,
                                          GCalVisibility.Private,
                                          GCalProjection.FreeBusy,
                                          DateTime.MinValue,
                                          range);
            return feed;
        }
コード例 #2
0
        public static EventFeed QueryGCalFreeBusy(
            string gcalUserEmail)
        {
            IConnectionThrottle throttle = new FakeThrottle();
            GCalGateway         gw       = new GCalGateway(ConfigCache.GoogleAppsLogin,
                                                           ConfigCache.GoogleAppsPassword,
                                                           ConfigCache.GoogleAppsDomain,
                                                           throttle);

            DateTime      now   = DateTime.Now;
            DateTime      start = now.AddDays(-7);
            DateTime      end   = now.AddDays(+7);
            DateTimeRange range = new DateTimeRange(start, end);

            EventFeed feed = gw.QueryGCal(gcalUserEmail,
                                          GCalVisibility.Private,
                                          GCalProjection.FreeBusy,
                                          DateTime.MinValue,
                                          range);

            return(feed);
        }