C# Класс Libmpc.MpdFile

The MpdFile class contains all meta data for a file of the MPD.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
MpdFile ( string file, int time, string album, string artist, string title, string track, string name, string genre, string date, string composer, string performer, string comment, int disc, int pos, int id ) : System

Creates a new MpdFile.

ToString ( ) : string

A string containing all the properties of the file.

build ( MpdResponse response ) : MpdFile

Returns a MpdFile object from a MpdResponse object.

buildList ( MpdResponse response ) : List

Builds a list of MpdFile objects from a MpdResponse object.

Приватные методы

Метод Описание
appendInt ( StringBuilder builder, string name, int value ) : void
appendString ( StringBuilder builder, string name, string value ) : void

Описание методов

MpdFile() публичный Метод

Creates a new MpdFile.
public MpdFile ( string file, int time, string album, string artist, string title, string track, string name, string genre, string date, string composer, string performer, string comment, int disc, int pos, int id ) : System
file string The name and path of the file.
time int The length of the file in seconds.
album string The album of the file.
artist string The artist of the file.
title string The title of the file.
track string The value of the track property of the file.
name string The name of the song.
genre string The genre of the song.
date string The date the song was released.
composer string The composer of the song.
performer string The performer of the song.
comment string A comment to the file.
disc int The number of the disc on a multidisc album.
pos int The index of the file in a playlist.
id int The id of the file in a playlist.
Результат System

ToString() публичный Метод

A string containing all the properties of the file.
public ToString ( ) : string
Результат string

build() публичный статический Метод

Returns a MpdFile object from a MpdResponse object.
public static build ( MpdResponse response ) : MpdFile
response MpdResponse The response of the MPD server.
Результат MpdFile

buildList() публичный статический Метод

Builds a list of MpdFile objects from a MpdResponse object.
public static buildList ( MpdResponse response ) : List
response MpdResponse The MpdResponse object to build the list of MpdFiles from.
Результат List