/FateGrandOrderAPI

A small lib that allows you to get information about servants from the game Fate/Grand Order

Primary LanguageC#

The FateGrandOrderAPI NuGet lib is a small lib that allows you to get information about servants from the game Fate/Grand Order

Discord

Usage:

using FateGrandOrderApi;
using FateGrandOrderApi.Classes;
using System;
using System.Text;
using System.Threading.Tasks;

public class Program
{
    static void Main(string[] args)
    {
        WewLogic(args).ConfigureAwait(true).GetAwaiter().GetResult();
        Console.ReadKey();
    }

    static async Task WewLogic(string[] args)
    {
        string name = "Jack_the_Ripper"; //It doesn't matter if the servant name has the _ for spaces but it's a good idea to have them
        var persondata = await FateGrandOrderParsing.GetServant(name, PresetsForInformation.BasicInformation);
        StringBuilder servantInfo = new StringBuilder();
        servantInfo.AppendLine($"Name: {persondata.BasicInformation.EnglishName}");
        servantInfo.AppendLine($"Jap name: {persondata.BasicInformation.JapaneseName}");
        servantInfo.AppendLine($"Gender: {persondata.BasicInformation.Gender}");
        servantInfo.AppendLine($"ATK: {persondata.BasicInformation.ATK}");
        servantInfo.AppendLine($"Class: {persondata.BasicInformation.Class}");
        servantInfo.AppendLine($"Cost: {persondata.BasicInformation.Cost}");
        Console.Write(servantInfo);
        //Keep in mind there are many more things it can do than just this. This is just a small example
    }
}

Output:

Name: Jack the Ripper
Jap name: ジャック・ザ・リッパー
Gender: Female
ATK: 1,786/11,557
Class: Assassin
Cost: 16

For more detail about what this API can offer then look at the wiki