Ejemplo n.º 1
0
        /// <summary>
        ///     Returns the corporation logo
        /// </summary>
        public byte[] GetCorporationLogoData(long corporationId, CorporationLogoSize size)
        {
            const string relUri = "/Corporation";
            const string ext    = ".png";

            return(requestImageData(relUri, corporationId, (int)size, ext));
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Saves the image to disk , and returns the path to the image.
        /// </summary>
        public Task <string> GetCorporationLogoAsync(long corporationId, CorporationLogoSize size, string path)
        {
            const string relUri = "/Corporation";
            const string ext    = ".png";

            return(requestImageAsync(relUri, corporationId, (int)size, ext, path));
        }
Ejemplo n.º 3
0
 /// <summary>
 ///     Returns the corporation logo data.
 /// </summary>
 public Task<byte[]> GetCorporationLogoDataAsync(long corporationId, CorporationLogoSize size) {
     const string relUri = "/Corporation";
     const string ext = ".png";
     return requestImageDataAsync(relUri, corporationId, (int) size, ext);
 }
Ejemplo n.º 4
0
 /// <summary>
 ///     Returns the corporation logo data.
 /// </summary>
 public byte[] GetCorporationLogoData(long corporationId, CorporationLogoSize size) {
     return GetCorporationLogoDataAsync(corporationId, size).Result;
 }
Ejemplo n.º 5
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public Task<string> GetCorporationLogoAsync(long corporationId, CorporationLogoSize size, string path) {
     const string relUri = "/Corporation";
     const string ext = ".png";
     return requestImageAsync(relUri, corporationId, (int) size, ext, path);
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetCorporationLogo(long corporationId, CorporationLogoSize size, string path) {
     return GetCorporationLogoAsync(corporationId, size, path).Result;
 }
Ejemplo n.º 7
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetCorporationLogo(long corporationId, CorporationLogoSize size)
 {
     const string relUri = "/Corporation";
     const string ext = ".png";
     return requestImage(relUri, corporationId, (int) size, ext);
 }
Ejemplo n.º 8
0
 /// <summary>
 ///     Returns the corporation logo data.
 /// </summary>
 public byte[] GetCorporationLogoData(long corporationId, CorporationLogoSize size)
 {
     return(GetCorporationLogoDataAsync(corporationId, size).Result);
 }
Ejemplo n.º 9
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetCorporationLogo(long corporationId, CorporationLogoSize size, string path)
 {
     return(GetCorporationLogoAsync(corporationId, size, path).Result);
 }