C# Class PlexServiceWCF.TrayInteraction

Inheritance: ITrayInteraction
Datei anzeigen Open project: cjmurph/PmsService

Public Properties

Property Type Description
APP_DATA_PATH string

Public Methods

Method Description
GetLog ( ) : string

Returns the log file as a string

GetSettings ( ) : string

Returns the settings file from the server as a json string

GetStatus ( ) : PlexState

Returns Running or Stopped

IsAuxAppRunning ( string name ) : bool

A request from the client for the running status of a specific auxilliary application

Restart ( ) : void

Restart Plex

SetSettings ( string settings ) : void

Write the settings to the server

Start ( ) : void

Start Plex

StartAuxApp ( string name ) : void
Stop ( ) : void

Stop Plex

StopAuxApp ( string name ) : void
TrayInteraction ( ) : System
WriteToLog ( string data ) : void

Write the passed string to the logfile

Private Methods

Method Description
OnPlexEvent ( object sender, PlexServiceCommon.StatusChangeEventArgs e ) : void

Plex status change event handler, forward any status changes to the clients

Method Details

GetLog() public method

Returns the log file as a string
public GetLog ( ) : string
return string

GetSettings() public method

Returns the settings file from the server as a json string
public GetSettings ( ) : string
return string

GetStatus() public method

Returns Running or Stopped
public GetStatus ( ) : PlexState
return PlexState

IsAuxAppRunning() public method

A request from the client for the running status of a specific auxilliary application
public IsAuxAppRunning ( string name ) : bool
name string the name of the auxilliary application to check
return bool

Restart() public method

Restart Plex
public Restart ( ) : void
return void

SetSettings() public method

Write the settings to the server
public SetSettings ( string settings ) : void
settings string Json serialised Settings instance
return void

Start() public method

Start Plex
public Start ( ) : void
return void

StartAuxApp() public method

public StartAuxApp ( string name ) : void
name string
return void

Stop() public method

Stop Plex
public Stop ( ) : void
return void

StopAuxApp() public method

public StopAuxApp ( string name ) : void
name string
return void

TrayInteraction() public method

public TrayInteraction ( ) : System
return System

WriteToLog() public static method

Write the passed string to the logfile
public static WriteToLog ( string data ) : void
data string
return void

Property Details

APP_DATA_PATH public_oe static_oe property

public static string APP_DATA_PATH
return string