Пример #1
0
        /// <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));
        }
Пример #2
0
        /// <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));
        }
Пример #3
0
 /// <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);
 }
Пример #4
0
 /// <summary>
 ///     Returns the type icon.
 /// </summary>
 public byte[] GetTypeIconData(long typeId, TypeIconSize size) {
     return GetTypeIconDataAsync(typeId, size).Result;
 }
Пример #5
0
 /// <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);
 }
Пример #6
0
 /// <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;
 }
Пример #7
0
 /// <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);
 }
Пример #8
0
 /// <summary>
 ///     Returns the type icon.
 /// </summary>
 public byte[] GetTypeIconData(long typeId, TypeIconSize size)
 {
     return(GetTypeIconDataAsync(typeId, size).Result);
 }
Пример #9
0
 /// <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);
 }