private static RuleAction.Reply.ActionFlags ReplyFlagsToMapiReplyFlags(RuleAction.ReplyAction.ReplyFlags replyFlags) { RuleAction.Reply.ActionFlags actionFlags = RuleAction.Reply.ActionFlags.None; if ((replyFlags & RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator) == RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator) { actionFlags |= RuleAction.Reply.ActionFlags.DoNotSendToOriginator; } if ((replyFlags & RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate) == RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate) { actionFlags |= RuleAction.Reply.ActionFlags.UseStockReplyTemplate; } return(actionFlags); }
internal static RuleAction.ReplyAction.ReplyFlags MapiReplyFlagsToReplyFlags(RuleAction.Reply.ActionFlags mapiReplyFlags) { RuleAction.ReplyAction.ReplyFlags replyFlags = RuleAction.ReplyAction.ReplyFlags.None; if ((mapiReplyFlags & RuleAction.Reply.ActionFlags.DoNotSendToOriginator) == RuleAction.Reply.ActionFlags.DoNotSendToOriginator) { replyFlags |= RuleAction.ReplyAction.ReplyFlags.DoNotSendToOriginator; } if ((mapiReplyFlags & RuleAction.Reply.ActionFlags.UseStockReplyTemplate) == RuleAction.Reply.ActionFlags.UseStockReplyTemplate) { replyFlags |= RuleAction.ReplyAction.ReplyFlags.UseStockReplyTemplate; } return(replyFlags); }
public ReplyAction(uint userFlags, RuleAction.ReplyAction.ReplyFlags replyFlags, StoreObjectId replyTemplateMessageId, Guid replyTemplateGuid) : base(RuleActionType.Reply, userFlags, replyTemplateMessageId, replyTemplateGuid) { EnumValidator.ThrowIfInvalid <RuleAction.ReplyAction.ReplyFlags>(replyFlags); this.Flags = replyFlags; }