コード例 #1
0
ファイル: SearchItem.cs プロジェクト: vincent2528/CubeGame
 /// <summary>
 /// Construct a search item. Minimally a search item need to have a unique id for a given search query.
 /// </summary>
 /// <param name="_id"></param>
 public SearchItem(string _id)
 {
     id       = _id;
     provider = defaultProvider;
 }
コード例 #2
0
        private IEnumerator FetchItemsIEnumerator(SearchProvider provider)
        {
            yield return(FetchNullItems());

            yield return(FetchSearchItems(provider));
        }
コード例 #3
0
 internal static SearchContext CreateContext(SearchProvider provider, string searchText = "")
 {
     return(new SearchContext(new [] { provider }, searchText));
 }
コード例 #4
0
 public ISearchExpression SetProvider(string name, SearchProvider provider)
 {
     m_AdditionalProviders[name] = provider;
     return(this);
 }
コード例 #5
0
 public FilterDesc(SearchProvider provider, bool enabled)
 {
     this.provider  = provider;
     this.isEnabled = enabled;
 }
コード例 #6
0
 public SearchApiSession(SearchProvider provider)
 {
     context = new SearchContext(new [] { provider });
 }
コード例 #7
0
 public static string GetProviderNameWithFilter(SearchProvider provider)
 {
     return(string.IsNullOrEmpty(provider.filterId) ? provider.name.displayName : provider.name.displayName + " (" + provider.filterId + ")");
 }
コード例 #8
0
 public ProviderDesc(NameEntry name, SearchProvider provider)
 {
     this.name     = name;
     this.provider = provider;
 }