Ban Service API.
More...
|
| proto external int | MaxPageSize () |
| | Returns max possible size of page that is allowed to be set.
|
| |
| proto external bool | CreateBanPlayerId (BackendCallback pCallback, int iPlayerId, string sReason, int iBanDuration) |
| | Create ban for player in current session on the server.
|
| |
| proto external bool | CreateBanIdentityId (BackendCallback pCallback, string sPlayerIdentityId, string sReason, int iBanDuration) |
| | Create ban for player based on his Identity Id.
|
| |
| proto external bool | RemoveBans (BackendCallback pCallback, notnull array< string > identityIds) |
| | Remove bans for list of player by their Identity Ids.
|
| |
| proto external bool | RemoveBanByName (BackendCallback pCallback, string sName, EStringMatchType nameMatchType) |
| | Remove ban by name of player.
|
| |
| proto external bool | RequestServerBanList (BackendCallback pCallback, notnull BanListPageParams pParams) |
| | Request List of active bans for players banned on local server.
|
| |
| proto external int | GetTotalItemCount () |
| | Get total item count on all pages.
|
| |
| proto external int | GetPageCount () |
| | Get page count.
|
| |
| proto external void | SetPageItems (int iCount) |
| | Set number of items per page.
|
| |
| proto external void | SetPageSize (int iCount) |
| | Set number of items per page.
|
| |
| proto external int | GetPage () |
| | Get current page number.
|
| |
| proto external int | GetPageItemCount () |
| | Get item count on current page.
|
| |
| proto external int | GetPageItems (notnull array< OnlineBanListData > bans) |
| | Get list of items on current page.
|
| |
◆ CreateBanIdentityId()
Create ban for player based on his Identity Id.
Can be created for players not connected in session
- Note
- For detailed explanation please consult documentation (wiki)
- Parameters
-
| pCallback | Is script callback where you will receive result/error when request finishes |
| sPlayerIdentityId | Is Game Identity Id of player |
| sReason | Is Reason of ban |
| iBanDuration | Is Ban Duration value - how long will ban exist in seconds (0 for permanent) |
◆ CreateBanPlayerId()
Create ban for player in current session on the server.
- Note
- For detailed explanation please consult documentation (wiki)
- Parameters
-
| pCallback | Is script callback where you will receive result/error when request finishes |
| iPlayerId | Is Player Id of player in current session on the server |
| sReason | Is Reason of ban |
| iBanDuration | Is Ban Duration value - how long will ban exist in seconds (0 for permanent) |
◆ GetPage()
| proto external int BanServiceApi.GetPage |
( |
| ) |
|
◆ GetPageCount()
| proto external int BanServiceApi.GetPageCount |
( |
| ) |
|
◆ GetPageItemCount()
| proto external int BanServiceApi.GetPageItemCount |
( |
| ) |
|
Get item count on current page.
◆ GetPageItems()
Get list of items on current page.
◆ GetTotalItemCount()
| proto external int BanServiceApi.GetTotalItemCount |
( |
| ) |
|
Get total item count on all pages.
◆ MaxPageSize()
| proto external int BanServiceApi.MaxPageSize |
( |
| ) |
|
Returns max possible size of page that is allowed to be set.
◆ RemoveBanByName()
Remove ban by name of player.
- Note
- For detailed explanation please consult documentation (wiki)
- Parameters
-
| pCallback | Is script callback where you will receive result/error when request finishes |
| sName | Is name of player to be unbanned |
| nameMatchType | Is how should player name be searched/matched in database |
◆ RemoveBans()
Remove bans for list of player by their Identity Ids.
- Note
- For detailed explanation please consult documentation (wiki)
- Parameters
-
| pCallback | Is script callback where you will receive result/error when request finishes |
| identityIds | Is list of identityIds of players to remove ban - unban |
◆ RequestServerBanList()
Request List of active bans for players banned on local server.
- Note
- For detailed explanation please consult documentation (wiki)
- Parameters
-
| pCallback | Is script callback where you will receive result/error when request finishes |
| pParams | Is PageParams object used to specify size and offset for pages of ban list |
◆ SetPageItems()
| proto external void BanServiceApi.SetPageItems |
( |
int | iCount | ) |
|
Set number of items per page.
◆ SetPageSize()
| proto external void BanServiceApi.SetPageSize |
( |
int | iCount | ) |
|
Set number of items per page.
The documentation for this interface was generated from the following file:
- GameLib/generated/online/BanServiceApi.c