Implementation
static const Map<Type, Map<Object, String>> ewsEnumDictionaries = {
RuleProperty: {
RuleProperty.RuleId: "RuleId",
RuleProperty.DisplayName: "DisplayName",
RuleProperty.Priority: "Priority",
RuleProperty.IsNotSupported: "IsNotSupported",
RuleProperty.Actions: "Actions",
RuleProperty.ConditionCategories: "Condition:Categories",
RuleProperty.ConditionContainsBodyStrings:
"Condition:ContainsBodyStrings",
RuleProperty.ConditionContainsHeaderStrings:
"Condition:ContainsHeaderStrings",
RuleProperty.ConditionContainsRecipientStrings:
"Condition:ContainsRecipientStrings",
RuleProperty.ConditionContainsSenderStrings:
"Condition:ContainsSenderStrings",
RuleProperty.ConditionContainsSubjectOrBodyStrings:
"Condition:ContainsSubjectOrBodyStrings",
RuleProperty.ConditionContainsSubjectStrings:
"Condition:ContainsSubjectStrings",
RuleProperty.ConditionFlaggedForAction: "Condition:FlaggedForAction",
RuleProperty.ConditionFromAddresses: "Condition:FromAddresses",
RuleProperty.ConditionFromConnectedAccounts:
"Condition:FromConnectedAccounts",
RuleProperty.ConditionHasAttachments: "Condition:HasAttachments",
RuleProperty.ConditionImportance: "Condition:Importance",
RuleProperty.ConditionIsApprovalRequest: "Condition:IsApprovalRequest",
RuleProperty.ConditionIsAutomaticForward: "Condition:IsAutomaticForward",
RuleProperty.ConditionIsAutomaticReply: "Condition:IsAutomaticReply",
RuleProperty.ConditionIsEncrypted: "Condition:IsEncrypted",
RuleProperty.ConditionIsMeetingRequest: "Condition:IsMeetingRequest",
RuleProperty.ConditionIsMeetingResponse: "Condition:IsMeetingResponse",
RuleProperty.ConditionIsNonDeliveryReport: "Condition:IsNDR",
RuleProperty.ConditionIsPermissionControlled:
"Condition:IsPermissionControlled",
RuleProperty.ConditionIsRead: "Condition:IsRead",
RuleProperty.ConditionIsSigned: "Condition:IsSigned",
RuleProperty.ConditionIsVoicemail: "Condition:IsVoicemail",
RuleProperty.ConditionIsReadReceipt: "Condition:IsReadReceipt",
RuleProperty.ConditionItemClasses: "Condition:ItemClasses",
RuleProperty.ConditionMessageClassifications:
"Condition:MessageClassifications",
RuleProperty.ConditionNotSentToMe: "Condition:NotSentToMe",
RuleProperty.ConditionSentCcMe: "Condition:SentCcMe",
RuleProperty.ConditionSentOnlyToMe: "Condition:SentOnlyToMe",
RuleProperty.ConditionSentToAddresses: "Condition:SentToAddresses",
RuleProperty.ConditionSentToMe: "Condition:SentToMe",
RuleProperty.ConditionSentToOrCcMe: "Condition:SentToOrCcMe",
RuleProperty.ConditionSensitivity: "Condition:Sensitivity",
RuleProperty.ConditionWithinDateRange: "Condition:WithinDateRange",
RuleProperty.ConditionWithinSizeRange: "Condition:WithinSizeRange",
RuleProperty.ExceptionCategories: "Exception:Categories",
RuleProperty.ExceptionContainsBodyStrings:
"Exception:ContainsBodyStrings",
RuleProperty.ExceptionContainsHeaderStrings:
"Exception:ContainsHeaderStrings",
RuleProperty.ExceptionContainsRecipientStrings:
"Exception:ContainsRecipientStrings",
RuleProperty.ExceptionContainsSenderStrings:
"Exception:ContainsSenderStrings",
RuleProperty.ExceptionContainsSubjectOrBodyStrings:
"Exception:ContainsSubjectOrBodyStrings",
RuleProperty.ExceptionContainsSubjectStrings:
"Exception:ContainsSubjectStrings",
RuleProperty.ExceptionFlaggedForAction: "Exception:FlaggedForAction",
RuleProperty.ExceptionFromAddresses: "Exception:FromAddresses",
RuleProperty.ExceptionFromConnectedAccounts:
"Exception:FromConnectedAccounts",
RuleProperty.ExceptionHasAttachments: "Exception:HasAttachments",
RuleProperty.ExceptionImportance: "Exception:Importance",
RuleProperty.ExceptionIsApprovalRequest: "Exception:IsApprovalRequest",
RuleProperty.ExceptionIsAutomaticForward: "Exception:IsAutomaticForward",
RuleProperty.ExceptionIsAutomaticReply: "Exception:IsAutomaticReply",
RuleProperty.ExceptionIsEncrypted: "Exception:IsEncrypted",
RuleProperty.ExceptionIsMeetingRequest: "Exception:IsMeetingRequest",
RuleProperty.ExceptionIsMeetingResponse: "Exception:IsMeetingResponse",
RuleProperty.ExceptionIsNonDeliveryReport: "Exception:IsNDR",
RuleProperty.ExceptionIsPermissionControlled:
"Exception:IsPermissionControlled",
RuleProperty.ExceptionIsRead: "Exception:IsRead",
RuleProperty.ExceptionIsSigned: "Exception:IsSigned",
RuleProperty.ExceptionIsVoicemail: "Exception:IsVoicemail",
RuleProperty.ExceptionItemClasses: "Exception:ItemClasses",
RuleProperty.ExceptionMessageClassifications:
"Exception:MessageClassifications",
RuleProperty.ExceptionNotSentToMe: "Exception:NotSentToMe",
RuleProperty.ExceptionSentCcMe: "Exception:SentCcMe",
RuleProperty.ExceptionSentOnlyToMe: "Exception:SentOnlyToMe",
RuleProperty.ExceptionSentToAddresses: "Exception:SentToAddresses",
RuleProperty.ExceptionSentToMe: "Exception:SentToMe",
RuleProperty.ExceptionSentToOrCcMe: "Exception:SentToOrCcMe",
RuleProperty.ExceptionSensitivity: "Exception:Sensitivity",
RuleProperty.ExceptionWithinDateRange: "Exception:WithinDateRange",
RuleProperty.ExceptionWithinSizeRange: "Exception:WithinSizeRange",
RuleProperty.ActionCategories: "Action:Categories",
RuleProperty.ActionCopyToFolder: "Action:CopyToFolder",
RuleProperty.ActionDelete: "Action:Delete",
RuleProperty.ActionForwardAsAttachmentToRecipients:
"Action:ForwardAsAttachmentToRecipients",
RuleProperty.ActionForwardToRecipients: "Action:ForwardToRecipients",
RuleProperty.ActionImportance: "Action:Importance",
RuleProperty.ActionMarkAsRead: "Action:MarkAsRead",
RuleProperty.ActionMoveToFolder: "Action:MoveToFolder",
RuleProperty.ActionPermanentDelete: "Action:PermanentDelete",
RuleProperty.ActionRedirectToRecipients: "Action:RedirectToRecipients",
RuleProperty.ActionSendSMSAlertToRecipients:
"Action:SendSMSAlertToRecipients",
RuleProperty.ActionServerReplyWithMessage:
"Action:ServerReplyWithMessage",
RuleProperty.ActionStopProcessingRules: "Action:StopProcessingRules",
RuleProperty.IsEnabled: "IsEnabled",
RuleProperty.IsInError: "IsInError",
RuleProperty.Conditions: "Conditions",
RuleProperty.Exceptions: "Exceptions",
},
MailboxType: {
MailboxType.Unknown: "Unknown",
MailboxType.OneOff: "OneOff",
MailboxType.Mailbox: "Mailbox",
MailboxType.PublicFolder: "PublicFolder",
MailboxType.PublicGroup: "PublicDL",
MailboxType.ContactGroup: "PrivateDL",
MailboxType.Contact: "Contact",
MailboxType.GroupMailbox: "GroupMailbox",
},
EventType: {
EventType.Status: "StatusEvent",
EventType.NewMail: "NewMailEvent",
EventType.Deleted: "DeletedEvent",
EventType.Modified: "ModifiedEvent",
EventType.Moved: "MovedEvent",
EventType.Copied: "CopiedEvent",
EventType.Created: "CreatedEvent",
EventType.FreeBusyChanged: "FreeBusyChangedEvent",
},
FileAsMapping: {
FileAsMapping.None: "None",
FileAsMapping.SurnameCommaGivenName: "LastCommaFirst",
FileAsMapping.GivenNameSpaceSurname: "FirstSpaceLast",
FileAsMapping.Company: "Company",
FileAsMapping.SurnameCommaGivenNameCompany: "LastCommaFirstCompany",
FileAsMapping.CompanySurnameGivenName: "CompanyLastFirst",
FileAsMapping.SurnameGivenName: "LastFirst",
FileAsMapping.SurnameGivenNameCompany: "LastFirstCompany",
FileAsMapping.CompanySurnameCommaGivenName: "CompanyLastCommaFirst",
FileAsMapping.SurnameGivenNameSuffix: "LastFirstSuffix",
FileAsMapping.SurnameSpaceGivenNameCompany: "LastSpaceFirstCompany",
FileAsMapping.CompanySurnameSpaceGivenName: "CompanyLastSpaceFirst",
FileAsMapping.SurnameSpaceGivenName: "LastSpaceFirst",
FileAsMapping.DisplayName: "DisplayName",
FileAsMapping.GivenName: "FirstName",
FileAsMapping.SurnameGivenNameMiddleSuffix: "LastFirstMiddleSuffix",
FileAsMapping.Surname: "LastName",
FileAsMapping.Empty: "Empty",
},
WellKnownFolderName: {
WellKnownFolderName.Calendar: "calendar",
WellKnownFolderName.Contacts: "contacts",
WellKnownFolderName.DeletedItems: "deleteditems",
WellKnownFolderName.Drafts: "drafts",
WellKnownFolderName.Inbox: "inbox",
WellKnownFolderName.Journal: "journal",
WellKnownFolderName.Notes: "notes",
WellKnownFolderName.Outbox: "outbox",
WellKnownFolderName.SentItems: "sentitems",
WellKnownFolderName.Tasks: "tasks",
WellKnownFolderName.MsgFolderRoot: "msgfolderroot",
WellKnownFolderName.PublicFoldersRoot: "publicfoldersroot",
WellKnownFolderName.Root: "root",
WellKnownFolderName.JunkEmail: "junkemail",
WellKnownFolderName.SearchFolders: "searchfolders",
WellKnownFolderName.VoiceMail: "voicemail",
WellKnownFolderName.RecoverableItemsRoot: "recoverableitemsroot",
WellKnownFolderName.RecoverableItemsDeletions:
"recoverableitemsdeletions",
WellKnownFolderName.RecoverableItemsVersions: "recoverableitemsversions",
WellKnownFolderName.RecoverableItemsPurges: "recoverableitemspurges",
WellKnownFolderName.RecoverableItemsDiscoveryHolds:
"recoverableitemsdiscoveryholds",
WellKnownFolderName.ArchiveRoot: "archiveroot",
WellKnownFolderName.ArchiveInbox: "archiveinbox",
WellKnownFolderName.ArchiveMsgFolderRoot: "archivemsgfolderroot",
WellKnownFolderName.ArchiveDeletedItems: "archivedeleteditems",
WellKnownFolderName.ArchiveRecoverableItemsRoot:
"archiverecoverableitemsroot",
WellKnownFolderName.ArchiveRecoverableItemsDeletions:
"archiverecoverableitemsdeletions",
WellKnownFolderName.ArchiveRecoverableItemsVersions:
"archiverecoverableitemsversions",
WellKnownFolderName.ArchiveRecoverableItemsPurges:
"archiverecoverableitemspurges",
WellKnownFolderName.ArchiveRecoverableItemsDiscoveryHolds:
"archiverecoverableitemsdiscoveryholds",
WellKnownFolderName.SyncIssues: "syncissues",
WellKnownFolderName.Conflicts: "conflicts",
WellKnownFolderName.LocalFailures: "localfailures",
WellKnownFolderName.ServerFailures: "serverfailures",
WellKnownFolderName.RecipientCache: "recipientcache",
WellKnownFolderName.QuickContacts: "quickcontacts",
WellKnownFolderName.ConversationHistory: "conversationhistory",
WellKnownFolderName.AdminAuditLogs: "adminauditlogs",
WellKnownFolderName.ToDoSearch: "todosearch",
WellKnownFolderName.MyContacts: "mycontacts",
WellKnownFolderName.Directory: "directory",
WellKnownFolderName.IMContactList: "imcontactlist",
WellKnownFolderName.PeopleConnect: "peopleconnect",
WellKnownFolderName.Favorites: "favorites",
}
};