示例#1
0
文件: Image.cs 项目: csdhome/evelib
        /// <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));
        }
示例#2
0
文件: Image.cs 项目: ams-tech/evelib
        /// <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));
        }
示例#3
0
文件: Image.cs 项目: dinomight/evelib
 /// <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);
 }
示例#4
0
文件: Image.cs 项目: dinomight/evelib
 /// <summary>
 ///     Returns the corporation logo data.
 /// </summary>
 public byte[] GetCorporationLogoData(long corporationId, CorporationLogoSize size) {
     return GetCorporationLogoDataAsync(corporationId, size).Result;
 }
示例#5
0
文件: Image.cs 项目: dinomight/evelib
 /// <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);
 }
示例#6
0
文件: Image.cs 项目: dinomight/evelib
 /// <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;
 }
示例#7
0
文件: Image.cs 项目: nozzy83/evelib
 /// <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);
 }
示例#8
0
文件: Image.cs 项目: ams-tech/evelib
 /// <summary>
 ///     Returns the corporation logo data.
 /// </summary>
 public byte[] GetCorporationLogoData(long corporationId, CorporationLogoSize size)
 {
     return(GetCorporationLogoDataAsync(corporationId, size).Result);
 }
示例#9
0
文件: Image.cs 项目: ams-tech/evelib
 /// <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);
 }