/// <summary> /// Returns the type icon /// </summary> public byte[] GetTypeIconData(long typeId, TypeIconSize size) { const string relUri = "/InventoryType"; const string ext = ".png"; return(requestImageData(relUri, typeId, (int)size, ext)); }
/// <summary> /// Saves the image to disk , and returns the path to the image. /// </summary> public Task <string> GetTypeIconAsync(long typeId, TypeIconSize size, string path) { const string relUri = "/InventoryType"; const string ext = ".png"; return(requestImageAsync(relUri, typeId, (int)size, ext, path)); }
/// <summary> /// Returns the type icon. /// </summary> public Task<byte[]> GetTypeIconDataAsync(long typeId, TypeIconSize size) { const string relUri = "/InventoryType"; const string ext = ".png"; return requestImageDataAsync(relUri, typeId, (int) size, ext); }
/// <summary> /// Returns the type icon. /// </summary> public byte[] GetTypeIconData(long typeId, TypeIconSize size) { return GetTypeIconDataAsync(typeId, size).Result; }
/// <summary> /// Saves the image to disk , and returns the path to the image. /// </summary> public Task<string> GetTypeIconAsync(long typeId, TypeIconSize size, string path) { const string relUri = "/InventoryType"; const string ext = ".png"; return requestImageAsync(relUri, typeId, (int) size, ext, path); }
/// <summary> /// Saves the image to disk , and returns the path to the image. /// </summary> public string GetTypeIcon(long typeId, TypeIconSize size, string path) { return GetTypeIconAsync(typeId, size, path).Result; }
/// <summary> /// Saves the image to disk , and returns the path to the image. /// </summary> public string GetTypeIcon(long typeId, TypeIconSize size) { const string relUri = "/InventoryType"; const string ext = ".png"; return requestImage(relUri, typeId, (int) size, ext); }
/// <summary> /// Returns the type icon. /// </summary> public byte[] GetTypeIconData(long typeId, TypeIconSize size) { return(GetTypeIconDataAsync(typeId, size).Result); }
/// <summary> /// Saves the image to disk , and returns the path to the image. /// </summary> public string GetTypeIcon(long typeId, TypeIconSize size, string path) { return(GetTypeIconAsync(typeId, size, path).Result); }