Chilas.Algolia.Analytics/AnalyticSearchType.cs
/// <summary>
/// Gets the parameter for the resource endpoint based on the searchtype selected
/// </summary>
/// <param name="searchType"></param>
/// <returns></returns>
Gets the parameter for the resource endpoint based on the searchtype selected
Gets the parameter for the resource endpoint based on the searchtype selected
private static string GetSearchResource(AnalyticSearchType searchType)
        {
            switch (searchType)
            {
                case AnalyticSearchType.Popular:
                    return "popular";
                case AnalyticSearchType.NoResults:
                    return "noresults";
                case AnalyticSearchType.Countries:
                    return "countries";
                case AnalyticSearchType.Hits:
                    return "hits";
                case AnalyticSearchType.HitsWithTypo:
                    return "hitswithtypo";
                case AnalyticSearchType.TopIps:
                    return "ips";
                case AnalyticSearchType.Referers:
                    return "referer";
                default:
                    throw new AlgoliaException("Invalid Search Feature Selected");
            }
        }
private static string GetSearchResource ( AnalyticSearchType searchType ) { switch ( searchType ) { case AnalyticSearchType . Popular : return " " ; case AnalyticSearchType . NoResults : return " " ; case AnalyticSearchType . Countries : return " " ; case AnalyticSearchType . Hits : return " " ; case AnalyticSearchType . HitsWithTypo : return " " ; case AnalyticSearchType . TopIps : return " " ; case AnalyticSearchType . Referers : return " " ; default : throw new AlgoliaException ( " " ) ; } }
Gets the parameter for the resource endpoint based on the searchtype selected
Gets the parameter for the resource endpoint based on the searchtype selected
None
searchType
AnalyticSearchType
None