Home Reference Source
public class | source

BansList

You can directly use an instance of this class. bansList

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

bans: *[]

Method Summary

Public Methods
public

addBan(sckAddress: *, banTime: number, banReason: *): *

public

deleteBan(sckAddress: *)

public

findBan(sckAddress: *): *

public

getBan(sckAddress: *): *

public

isBanned(sckAddress: *): *

Private Methods
private
private

Public Constructors

public constructor() source

Public Members

public bans: *[] source

Public Methods

public addBan(sckAddress: *, banTime: number, banReason: *): * source

Params:

NameTypeAttributeDescription
sckAddress *
banTime number
  • optional
  • default: 10000
banReason *

Return:

*

public deleteBan(sckAddress: *) source

Params:

NameTypeAttributeDescription
sckAddress *

public findBan(sckAddress: *): * source

Params:

NameTypeAttributeDescription
sckAddress *

Return:

*

public getBan(sckAddress: *): * source

Params:

NameTypeAttributeDescription
sckAddress *

Return:

*

public isBanned(sckAddress: *): * source

Params:

NameTypeAttributeDescription
sckAddress *

Return:

*

Private Methods

private _listBans() source

private _removeEmptyBans() source