Class SearchPageViewModel.SearchResultFormatter

The SearchResultFormatter formats the search result to make it look nicer when displaying in the Controller.

Inheritance
System.Object
SearchPageViewModel.SearchResultFormatter
Namespace: Catalog.ViewModels
Assembly: Catalog.dll
Syntax
public class SearchResultFormatter

Constructors

SearchResultFormatter(Result)

Declaration
public SearchResultFormatter(Result result)
Parameters
Type Name Description
Result result

Properties

AfterQuery

The text after the search query, if any.

Declaration
public string AfterQuery { get; }
Property Value
Type Description
System.String

BeforeQuery

The part of the text before the query.

Declaration
public string BeforeQuery { get; }
Property Value
Type Description
System.String

Result

The search result.

Declaration
public Result Result { get; }
Property Value
Type Description
Result

SearchQuery

The search query in the preview text.

Declaration
public string SearchQuery { get; }
Property Value
Type Description
System.String