Skip to content

ISearchVm

Namespace: SlottyMedia.Backend.ViewModel.Partial.Search

This Interface represents the viewmodel of the Search

public interface ISearchVm

Properties

SearchPrompt

The prompt the user should input in order to search for a space or user

public abstract string SearchPrompt { get; set; }

Property Value

String

SearchResults

The search results

public abstract SearchDto SearchResults { get; set; }

Property Value

SearchDto

Methods

GetSearchResults(ChangeEventArgs, EventCallback<String>)

This function searches for spaces or users based on the input of the user

Task GetSearchResults(ChangeEventArgs e, EventCallback<string> promptValueChanged)

Parameters

e ChangeEventArgs

promptValueChanged EventCallback<String>

Returns

Task

ClearSearchResults()

This function clears the search results

void ClearSearchResults()