コード例 #1
0
        protected override void UpdateRequestBody(PublishedCalendar publishedFolder)
        {
            ItemResponseShape itemResponseShape = new ItemResponseShape();

            itemResponseShape.BaseShape            = ShapeEnum.IdOnly;
            itemResponseShape.AdditionalProperties = new PropertyPath[]
            {
                new PropertyUri(PropertyUriEnum.ItemId),
                new PropertyUri(PropertyUriEnum.ItemParentId),
                new PropertyUri(PropertyUriEnum.Sensitivity),
                new PropertyUri(PropertyUriEnum.IsCancelled),
                new PropertyUri(PropertyUriEnum.IsMeeting),
                new PropertyUri(PropertyUriEnum.LegacyFreeBusyStatus),
                new PropertyUri(PropertyUriEnum.CalendarItemType),
                new PropertyUri(PropertyUriEnum.Start),
                new PropertyUri(PropertyUriEnum.End),
                new PropertyUri(PropertyUriEnum.IsAllDayEvent),
                new PropertyUri(PropertyUriEnum.Location),
                new PropertyUri(PropertyUriEnum.Subject)
            };
            base.Request.Body.ItemShape = itemResponseShape;
            CalendarPageView calendarPageView  = (CalendarPageView)base.Request.Body.Paging;
            CalendarPageView calendarPageView2 = new CalendarPageView();

            calendarPageView2.StartDate = calendarPageView.StartDate;
            calendarPageView2.EndDate   = calendarPageView.EndDate;
            base.Request.Body.Paging    = calendarPageView2;
        }
コード例 #2
0
        protected override void UpdateRequestBody(PublishedCalendar publishedFolder)
        {
            ItemResponseShape itemResponseShape = new ItemResponseShape();

            itemResponseShape.BaseShape = ShapeEnum.IdOnly;
            List <PropertyPath> list = new List <PropertyPath>
            {
                new PropertyUri(PropertyUriEnum.ItemId),
                new PropertyUri(PropertyUriEnum.ItemParentId),
                new PropertyUri(PropertyUriEnum.Sensitivity),
                new PropertyUri(PropertyUriEnum.IsCancelled),
                new PropertyUri(PropertyUriEnum.LegacyFreeBusyStatus),
                new PropertyUri(PropertyUriEnum.CalendarItemType),
                new PropertyUri(PropertyUriEnum.Start),
                new PropertyUri(PropertyUriEnum.End),
                new PropertyUri(PropertyUriEnum.IsAllDayEvent),
                new PropertyUri(PropertyUriEnum.EnhancedLocation),
                new PropertyUri(PropertyUriEnum.Subject),
                new PropertyUri(PropertyUriEnum.Recurrence)
            };

            if (publishedFolder.DetailLevel == DetailLevelEnumType.FullDetails)
            {
                list.Add(new PropertyUri(PropertyUriEnum.Body));
            }
            itemResponseShape.AdditionalProperties = list.ToArray();
            itemResponseShape.BodyType             = base.Request.Body.ItemShape.BodyType;
            WellKnownShapes.SetDefaultsOnItemResponseShape(itemResponseShape, base.Context.UserAgent.Layout, null);
            base.Request.Body.ItemShape = itemResponseShape;
        }
コード例 #3
0
        private static PropertyDefinition[] GetSubscriptionProperties(IFeaturesManager featuresManager)
        {
            string            text = WellKnownShapeName.MailListItem.ToString();
            ItemResponseShape itemResponseShape = new ItemResponseShape();

            itemResponseShape.BaseShape = ShapeEnum.IdOnly;
            ItemResponseShape responseShape = Global.ResponseShapeResolver.GetResponseShape <ItemResponseShape>(text, itemResponseShape, featuresManager);

            if (responseShape == null)
            {
                ExTraceGlobals.NotificationsCallTracer.TraceError <string>((long)text.GetHashCode(), "[MessageItemRowNotificationHandler.GetSubscriptionProperties] Unable to resolve shapeName: {0} with features manager", text);
                return(MessageItemRowNotificationHandler.defaultSubscriptionProperties);
            }
            Shape[] shapes = new Shape[]
            {
                ItemShape.CreateShape(),
                    MessageShape.CreateShape(),
                    TaskShape.CreateShape()
            };
            return(RowNotificationHandler.GetPropertyDefinitionsForResponseShape(shapes, responseShape, new PropertyDefinition[0]));
        }
コード例 #4
0
        // Token: 0x0600242C RID: 9260 RVA: 0x000823D4 File Offset: 0x000805D4
        internal static void SetDefaultsOnItemResponseShape(ItemResponseShape shape, LayoutType layout, OwaUserConfiguration owaUserConfiguration = null)
        {
            bool flag = owaUserConfiguration == null;

            if (owaUserConfiguration != null && owaUserConfiguration.ApplicationSettings.FilterWebBeaconsAndHtmlForms == WebBeaconFilterLevels.DisableFilter)
            {
                shape.FilterHtmlContent = false;
                shape.BlockExternalImagesIfSenderUntrusted = false;
            }
            else
            {
                shape.FilterHtmlContent = true;
                if (flag)
                {
                    shape.BlockExternalImages = true;
                }
                else
                {
                    shape.BlockExternalImagesIfSenderUntrusted = true;
                }
            }
            if (owaUserConfiguration != null && owaUserConfiguration.SegmentationSettings.PredictedActions)
            {
                shape.InferenceEnabled = true;
            }
            shape.AddBlankTargetToLinks     = true;
            shape.ClientSupportsIrm         = !flag;
            shape.MaximumBodySize           = ((layout == LayoutType.Mouse) ? 2097152 : 51200);
            shape.MaximumRecipientsToReturn = ((layout == LayoutType.Mouse) ? 10 : 0);
            if (!flag)
            {
                shape.InlineImageUrlTemplate        = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAEALAAAAAABAAEAAAIBTAA7";
                shape.InlineImageUrlOnLoadTemplate  = "InlineImageLoader.GetLoader().Load(this)";
                shape.InlineImageCustomDataTemplate = "{id}";
            }
        }