Solvberget.Domain.Implementation.AlephRepository.GetDocumentType C# (CSharp) Method

GetDocumentType() private static method

private static GetDocumentType ( IEnumerable documentTypeCodes ) : string
documentTypeCodes IEnumerable
return string
        private static string GetDocumentType(IEnumerable<string> documentTypeCodes)
        {
            var dtc = new HashSet<string>(documentTypeCodes.Select(x => x.Trim()));

            if (dtc.Contains("l"))
                return typeof(Book).FullName;
            else if (dtc.Any(x => x.StartsWith("e")))
                return typeof(Film).FullName;
            else if (dtc.Contains("dc") && dtc.Contains("dg"))
                return typeof(Cd).FullName;
            else if (dtc.Contains("di"))
                return typeof(AudioBook).FullName;
            else if (dtc.Contains("c"))
                return typeof(SheetMusic).FullName;
            else if (dtc.Contains("dh"))
                return typeof(LanguageCourse).FullName;
            else if (dtc.Contains("j"))
                return typeof(Journal).FullName;
            else if (dtc.Any(x => x.StartsWith("m")))
                return typeof (Game).FullName;

            return typeof(Document).FullName;
        }