Example #1
0
        /// <summary>
        ///     Returns the alliance logo
        /// </summary>
        public byte[] GetAllianceLogoData(long allianceId, AllianceLogoSize size)
        {
            const string relUri = "/Alliance";
            const string ext    = ".png";

            return(requestImageData(relUri, allianceId, (int)size, ext));
        }
Example #2
0
        /// <summary>
        ///     Saves the image to disk , and returns the path to the image.
        /// </summary>
        public Task <string> GetAllianceLogoAsync(long allianceId, AllianceLogoSize size, string path)
        {
            const string relUri = "/Alliance";
            const string ext    = ".png";

            return(requestImageAsync(relUri, allianceId, (int)size, ext, path));
        }
Example #3
0
 /// <summary>
 ///     Returns the alliance logo.
 /// </summary>
 public Task<byte[]> GetAllianceLogoDataAsync(long allianceId, AllianceLogoSize size) {
     const string relUri = "/Alliance";
     const string ext = ".png";
     return requestImageDataAsync(relUri, allianceId, (int) size, ext);
 }
Example #4
0
 /// <summary>
 ///     Returns the alliance logo.
 /// </summary>
 public byte[] GetAllianceLogoData(long allianceId, AllianceLogoSize size) {
     return GetAllianceLogoDataAsync(allianceId, size).Result;
 }
Example #5
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public Task<string> GetAllianceLogoAsync(long allianceId, AllianceLogoSize size, string path) {
     const string relUri = "/Alliance";
     const string ext = ".png";
     return requestImageAsync(relUri, allianceId, (int) size, ext, path);
 }
Example #6
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetAllianceLogo(long allianceId, AllianceLogoSize size, string path) {
     return GetAllianceLogoAsync(allianceId, size, path).Result;
 }
Example #7
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetAllianceLogo(long allianceId, AllianceLogoSize size)
 {
     const string relUri = "/Alliance";
     const string ext = ".png";
     return requestImage(relUri, allianceId, (int) size, ext);
 }
Example #8
0
 /// <summary>
 ///     Returns the alliance logo.
 /// </summary>
 public byte[] GetAllianceLogoData(long allianceId, AllianceLogoSize size)
 {
     return(GetAllianceLogoDataAsync(allianceId, size).Result);
 }
Example #9
0
 /// <summary>
 ///     Saves the image to disk , and returns the path to the image.
 /// </summary>
 public string GetAllianceLogo(long allianceId, AllianceLogoSize size, string path)
 {
     return(GetAllianceLogoAsync(allianceId, size, path).Result);
 }