Class ImageDownloader
Allows for downloading images from GroupMe.
Namespace: GroupMeClientApi
Assembly: GroupMeClientApi.dll
Syntax
public class ImageDownloader : object
Constructors
| Improve this Doc View SourceImageDownloader()
Initializes a new instance of the ImageDownloader class.
Declaration
public ImageDownloader()
Properties
| Improve this Doc View SourceHttpClient
Gets the HttpClient used for downloading images.
Declaration
protected System.Net.Http.HttpClient HttpClient { get; }
Property Value
| Type | Description |
|---|---|
| System.Net.Http.HttpClient |
Methods
| Improve this Doc View SourceDownloadAvatarImageAsync(String, Boolean)
Downloads an Avatar Image from GroupMe.
Declaration
public virtual Task<byte[]> DownloadAvatarImageAsync(string url, bool isGroup = true)
Parameters
| Type | Name | Description |
|---|---|---|
| String | url | The URL of the avatar image. |
| Boolean | isGroup | Indicates if the avatar is for a group (true) or a chat (false). |
Returns
| Type | Description |
|---|---|
| Task<Byte[]> | An image. |
DownloadByteDataAsync(String)
Downloads raw data from GroupMe.
Declaration
public virtual Task<byte[]> DownloadByteDataAsync(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| String | url | The url to download. |
Returns
| Type | Description |
|---|---|
| Task<Byte[]> | Raw bytes. |
DownloadPostImageAsync(String)
Downloads a posted Image from GroupMe.
Declaration
public virtual Task<byte[]> DownloadPostImageAsync(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| String | url | The URL of the image. |
Returns
| Type | Description |
|---|---|
| Task<Byte[]> | An image. |
DownloadRawImageAsync(String)
Downloads a image from GroupMe.
Declaration
protected virtual Task<byte[]> DownloadRawImageAsync(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| String | url | The URL of the image. |
Returns
| Type | Description |
|---|---|
| Task<Byte[]> | An image. |
DownloadStringDataAsync(String)
Downloads raw string data from GroupMe.
Declaration
public virtual Task<string> DownloadStringDataAsync(string url)
Parameters
| Type | Name | Description |
|---|---|---|
| String | url | The url to download. |
Returns
| Type | Description |
|---|---|
| Task<String> | Raw bytes. |
GetDefaultGroupAvatar()
Gets the default avatar for a group.
Declaration
public byte[] GetDefaultGroupAvatar()
Returns
| Type | Description |
|---|---|
| Byte[] | A image object. |
GetDefaultPersonAvatar()
Gets the default avatar for a person.
Declaration
public byte[] GetDefaultPersonAvatar()
Returns
| Type | Description |
|---|---|
| Byte[] | A image object. |