C# Class Libmpc.MpdStatistics

The MpdStatistics class contains statistics of the MPD file database.
Exibir arquivo Open project: sakya/wpfmpdclient

Public Methods

Method Description
MpdStatistics ( int artists, int albums, int songs, int uptime, int playtime, int db_playtime, long db_update ) : System

Creates a new MpdStatistics object.

ToString ( ) : string

Returns a string representation of the object mainly for debugging purpuse.

Private Methods

Method Description
appendInt ( StringBuilder builder, string name, int value ) : void
appendLong ( StringBuilder builder, string name, long value ) : void

Method Details

MpdStatistics() public method

Creates a new MpdStatistics object.
public MpdStatistics ( int artists, int albums, int songs, int uptime, int playtime, int db_playtime, long db_update ) : System
artists int The number of artists in the MPD database.
albums int The number of albums in the MPD database.
songs int The number of songs in the MPD database.
uptime int The time the MPD server is running in seconds.
playtime int The number of seconds the MPD played so far.
db_playtime int The total playtime of all songs in the MPD database.
db_update long The timestamp of the last MPD database update.
return System

ToString() public method

Returns a string representation of the object mainly for debugging purpuse.
public ToString ( ) : string
return string