• Home
  • API Documentation

Class ImageDownloader

Allows for downloading images from GroupMe.

Inheritance
Object
ImageDownloader
CachedImageDownloader
Namespace: GroupMeClientApi
Assembly: GroupMeClientApi.dll
Syntax
public class ImageDownloader : object

Constructors

| Improve this Doc View Source

ImageDownloader()

Initializes a new instance of the ImageDownloader class.

Declaration
public ImageDownloader()

Properties

| Improve this Doc View Source

HttpClient

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 Source

DownloadAvatarImageAsync(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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

GetDefaultGroupAvatar()

Gets the default avatar for a group.

Declaration
public byte[] GetDefaultGroupAvatar()
Returns
Type Description
Byte[]

A image object.

| Improve this Doc View Source

GetDefaultPersonAvatar()

Gets the default avatar for a person.

Declaration
public byte[] GetDefaultPersonAvatar()
Returns
Type Description
Byte[]

A image object.

  • Edit on GitHub
  • View on GitHub
Back to top Generated by DocFX