Ejemplo n.º 1
0
        public Task <SearchResult> Search(EntityType categories, string search, bool strict)
        {
            var typeParam   = Uri.EscapeDataString(categories.ToString().ToLower().Replace(" ", ""));
            var searchParam = Uri.EscapeDataString(search);

            return(_client.GetAsync <SearchResult>($"search/?categories={typeParam}&search={searchParam}&strict={strict}"));
        }
Ejemplo n.º 2
0
 public Task <CharacterInfo> Get(long characterId)
 {
     return(_client.GetAsync <CharacterInfo>($"characters/{characterId}"));
 }
Ejemplo n.º 3
0
 public Task <CorporationInfo[]> GetNames(params long[] corporationIds)
 {
     return(_client.GetAsync <CorporationInfo[]>($"corporations/names/?corporation_ids={string.Join(",", corporationIds)}"));
 }
Ejemplo n.º 4
0
 public Task <long[]> GetAll()
 {
     return(_client.GetAsync <long[]>("alliances/"));
 }