Libmpc.Mpc.PlaylistFind C# (CSharp) Method

PlaylistFind() public method

Returns the meta data for all tracks in the current playlist whos attribute equals the given value.
public PlaylistFind ( ScopeSpecifier scopeSpecifier, string token ) : List
scopeSpecifier ScopeSpecifier The attribute to search for the given value.
token string The value to search for in the given attribute.
return List
        public List<MpdFile> PlaylistFind(ScopeSpecifier scopeSpecifier, string token)
        {
            if (token == null)
            throw new ArgumentNullException("token");

              token = EscapeString(token);
              MpdResponse response = this.getConnection().Exec("playlistfind", new string[] { this.toTag(scopeSpecifier), token });

              if (response.IsError)
            throw new MpdResponseException(response.ErrorCode, response.ErrorMessage);

              return MpdFile.buildList(response);
        }