// Token: 0x0600138D RID: 5005 RVA: 0x00070996 File Offset: 0x0006EB96 internal AttachmentPolicy(string[] blockFileTypes, string[] blockMimeTypes, string[] forceSaveFileTypes, string[] forceSaveMimeTypes, string[] allowFileTypes, string[] allowMimeTypes, bool alwaysBlock, bool blockOnPublicComputers, AttachmentPolicy.Level treatUnknownTypeAs) { this.alwaysBlock = alwaysBlock; this.blockOnPublicComputers = blockOnPublicComputers; this.treatUnknownTypeAs = treatUnknownTypeAs; AttachmentPolicy.LoadDictionary(out this.fileTypeLevels, blockFileTypes, forceSaveFileTypes, allowFileTypes); AttachmentPolicy.LoadDictionary(out this.mimeTypeLevels, blockMimeTypes, forceSaveMimeTypes, allowMimeTypes); }
// Token: 0x06001392 RID: 5010 RVA: 0x000709F0 File Offset: 0x0006EBF0 public AttachmentPolicy.Level GetLevel(string attachmentType, AttachmentPolicy.TypeSignifier typeSignifier) { AirSyncDiagnostics.Assert(attachmentType != null); AttachmentPolicy.Level result = AttachmentPolicy.Level.Unknown; switch (typeSignifier) { case AttachmentPolicy.TypeSignifier.File: result = AttachmentPolicy.FindLevel(this.fileTypeLevels, attachmentType); break; case AttachmentPolicy.TypeSignifier.Mime: result = AttachmentPolicy.FindLevel(this.mimeTypeLevels, attachmentType); break; } return(result); }