示例#1
0
        public static string GetSummaryResponseKindText(ReportResponseWithSummary advancedReport)
        {
            var searchConfigType = advancedReport.WatchlistSummary.SearchConfig.GetType();

            if (searchConfigType == typeof(WatchlistAdvancedCaSearchConfigResponseYotiAccount))
            {
                return("Yoti Account");
            }
            if (searchConfigType == typeof(WatchlistAdvancedCaSearchConfigResponseCustomAccount))
            {
                return("Custom Account");
            }
            if (searchConfigType == typeof(WatchlistScreeningConfig))
            {
                return("Watchlist Screening");
            }
            return("N/A");
        }
示例#2
0
        public static string GetPrettifiedWatchlistSearchConfig(ReportResponseWithSummary advancedReport)
        {
            var json = JsonConvert.SerializeObject(advancedReport.WatchlistSummary.SearchConfig);

            return(JValue.Parse(json).ToString(Formatting.Indented));
        }