C# Class wpf_player.SearchListModel

Class that implements the ViewModel in the MVVM pattern. This class contains logic for handling the research and the comminication with other viewmodels
Inheritance: INotifyPropertyChanged
Show file Open project: zencoders/sambatyon Class Usage Examples

Public Methods

Method Description
OnStreamRequest ( StreamRequestedArgs args ) : void

This method raises the stream request event used by the audio player to start a streaming session

SearchListModel ( Peer peer = null ) : System

Constructor that initializes the commands and the local reference to the peer

Private Methods

Method Description
NotifyPropertyChanged ( String info ) : void

Method called when a property has been changed. This method rises the event PropertyChange.

searchFn ( object args = null ) : void

Backend method for the search command. This method uses the peer to search the network and loads the results in the Response list.

startStream ( object args = null ) : void

Backend method for the start stream command. This method calls the OnStreamRequest

Method Details

OnStreamRequest() public method

This method raises the stream request event used by the audio player to start a streaming session
public OnStreamRequest ( StreamRequestedArgs args ) : void
args StreamRequestedArgs Parameter that will be passed to the handler
return void

SearchListModel() public method

Constructor that initializes the commands and the local reference to the peer
public SearchListModel ( Peer peer = null ) : System
peer PeerLibrary.Peer Peer that will be used to get information from the network
return System