C# Class Miracle.FileZilla.Api.FileZillaApi

FileZilla server API
Inheritance: FileZillaServerProtocol, IFileZillaApi
Afficher le fichier Open project: PolarbearDK/Miracle.FileZilla.Api

Méthodes publiques

Méthode Description
BanIp ( int connectionId ) : bool

Kick a connection by id, and also ban IP address.

FileZillaApi ( ) : System.Collections.Generic

Construct FileZillaApi using default IP/port

FileZillaApi ( IPAddress address, int port ) : System.Collections.Generic

Construct FileZillaApi using specific IP/port

GetAccountSettings ( ) : AccountSettings

Get account settings including all users and groups

GetConnections ( ) : List

Get list af current connections to FileZilla server

GetServerState ( ) : ServerState

Get state of FileZilla server

GetSettings ( ) : Settings

Get state of FileZilla server

Kick ( int connectionId ) : bool

Kick a connection by id.

SetAccountSettings ( AccountSettings accountSettings ) : bool

Set account settings. Note! This replaces ALL users and groups on FileZilla server.

SetServerState ( ServerState serverState ) : ServerState

Set state of FileZilla server

SetSettings ( Settings settings ) : bool

Get state of FileZilla server

Method Details

BanIp() public méthode

Kick a connection by id, and also ban IP address.
public BanIp ( int connectionId ) : bool
connectionId int Connection Id (Use GetConnections to find ConnectionId)
Résultat bool

FileZillaApi() public méthode

Construct FileZillaApi using default IP/port
public FileZillaApi ( ) : System.Collections.Generic
Résultat System.Collections.Generic

FileZillaApi() public méthode

Construct FileZillaApi using specific IP/port
public FileZillaApi ( IPAddress address, int port ) : System.Collections.Generic
address System.Net.IPAddress IP address of filezilla server.
port int Admin port as specified when FileZilla server were installed
Résultat System.Collections.Generic

GetAccountSettings() public méthode

Get account settings including all users and groups
public GetAccountSettings ( ) : AccountSettings
Résultat AccountSettings

GetConnections() public méthode

Get list af current connections to FileZilla server
public GetConnections ( ) : List
Résultat List

GetServerState() public méthode

Get state of FileZilla server
public GetServerState ( ) : ServerState
Résultat ServerState

GetSettings() public méthode

Get state of FileZilla server
public GetSettings ( ) : Settings
Résultat Settings

Kick() public méthode

Kick a connection by id.
public Kick ( int connectionId ) : bool
connectionId int Connection Id (Use GetConnections to find ConnectionId)
Résultat bool

SetAccountSettings() public méthode

Set account settings. Note! This replaces ALL users and groups on FileZilla server.
public SetAccountSettings ( AccountSettings accountSettings ) : bool
accountSettings AccountSettings
Résultat bool

SetServerState() public méthode

Set state of FileZilla server
public SetServerState ( ServerState serverState ) : ServerState
serverState ServerState The new state
Résultat ServerState

SetSettings() public méthode

Get state of FileZilla server
public SetSettings ( Settings settings ) : bool
settings Settings
Résultat bool