Skip to content

Get Started

Jan0660 edited this page Nov 8, 2020 · 4 revisions

Create new client

Using the database from the Internet

using Jan0660.AzurAPINet;

AzurAPIClient Client = new AzurAPIClient(new AzurAPIClientOptions());

Using local database download

Download AzurAPI database

Replace DatabaseDirectory with your path to the downloaded AzurAPI database with a slash at the end. For example: @"D:\00.code\azurapi-js-setup\"

using Jan0660.AzurAPINet;

AzurAPIClient Client = new AzurAPIClient(DatabaseDirectory,
                                         new AzurAPIClientOptions());

Get a List of all ships

var ships = Client.GetAllShips();

Get a ship by name

The Client.GetShip method searches for a ship using it's English name, code, id, Japanese and Chinese name, in this order.

var ship = Client.GetShip("takao");
// or for the real ones
var waifu = Client.GetWaifu("takao");

You can also search for a ship using only it's id / en,ja,cn name / code

// get ship by id
Client.GetShipById("200");
// by english,japanese,chinese,korean name
Client.GetShipByEnglishName("takao");
Client.GetShipByJapaneseName("高雄");
Client.GetShipByChineseName("獒");
Client.GetShipByKoreanName("타카오");
// by code
Client.GetShipByCode("IJN Takao");

Everything else this wrapper can do

Look at the sidebar or source code lol