// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// Code forked from Betsegaw Tadele's https://github.com/betsegaw/windowwalker/
namespace Microsoft.Plugin.WindowWalker.Components
{
///
/// A class to represent a search string
///
/// Class was added inorder to be able to attach various context data to
/// a search string
internal class SearchString
{
///
/// Gets where is the search string coming from (is it a shortcut
/// or direct string, etc...)
///
public SearchResult.SearchType SearchType
{
get;
private set;
}
///
/// Gets the actual text we are searching for
///
public string SearchText
{
get;
private set;
}
///
/// Initializes a new instance of the class.
/// Constructor
///
/// text from search
/// type of search
public SearchString(string searchText, SearchResult.SearchType searchType)
{
SearchText = searchText;
SearchType = searchType;
}
}
}