Added card backs to pdf. Fixed determination of player cards from DB
This commit is contained in:
@@ -10,6 +10,7 @@ namespace ArkhamPnP
|
||||
{
|
||||
internal class ArkhamDBApi
|
||||
{
|
||||
const string BASE_IMAGE_URL = "https://ru.arkhamdb.com";
|
||||
const string BASE_URL = "https://ru.arkhamdb.com/api/";
|
||||
|
||||
HttpClient http = new HttpClient();
|
||||
@@ -38,5 +39,11 @@ namespace ArkhamPnP
|
||||
}
|
||||
return cards;
|
||||
}
|
||||
|
||||
public async Task<Stream> GetImage(string path)
|
||||
{
|
||||
var result = await http.GetAsync(BASE_IMAGE_URL + path);
|
||||
return await result.Content.ReadAsStreamAsync();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user