Exemplo n.º 1
0
        private static void UpdateMeetingResponseSubject(MeetingResponse meetingResponse)
        {
            string subject = meetingResponse.Subject;
            string text    = (meetingResponse.TryGetProperty(ItemSchema.NormalizedSubject) as string) ?? string.Empty;

            if (subject.Length > 255)
            {
                int num = subject.Length - 255;
                meetingResponse[ItemSchema.NormalizedSubject] = text.Substring(0, text.Length - num);
            }
        }
Exemplo n.º 2
0
        public MeetingResponseWriter(MeetingResponse meetingResponse, UserContext userContext, bool isPreviewForm, bool isInDeletedItems, bool isEmbeddedItem, bool isInJunkEmailFolder, bool isSuspectedPhishingItem, bool isLinkEnabled) : base(meetingResponse, userContext, isPreviewForm, isInDeletedItems, isEmbeddedItem, isInJunkEmailFolder, isSuspectedPhishingItem, isLinkEnabled)
        {
            this.meetingResponse = meetingResponse;
            this.isEmbeddedItem  = isEmbeddedItem;
            object obj = meetingResponse.TryGetProperty(MessageItemSchema.IsDraft);

            this.isDraft     = (obj is bool && (bool)obj);
            this.isDelegated = meetingResponse.IsDelegated();
            if (!Utilities.IsPublic(meetingResponse) && !this.isDraft && !isEmbeddedItem)
            {
                this.isOrganizer = base.ProcessMeetingMessage(meetingResponse, Utilities.IsItemInDefaultFolder(meetingResponse, DefaultFolderType.Inbox));
                if (this.isOrganizer)
                {
                    this.AttendeeResponseWell = new CalendarItemAttendeeResponseRecipientWell(this.CalendarItemBase);
                }
            }
            this.recipientWell = new MessageRecipientWell(meetingResponse);
        }