PlayPortalImageClient

This class is responsible for making requests to the playPORTAL image API.
public sealed class PlayPortalImageClient

The primary use case for this class is making requests for other users' (ie., not the currently authenticated user) profile pic and cover photo using the profilePic and coverPhoto properties on a PlayPortalProfile instance.

Properties

public static readonly PlayPortalImageClient Instance;

Singleton instance of PlayPortalImageClient. You will access all the available PlayPortalImageClient methods through this instance.

Methods

GetImage

public void GetImage(string imageId, Action<Exception, byte[]> completion)

Request data representing an image by its id.

Parameter

Type

Description

imageId

string

The id of the image being requested.

completion

Action<Exception, byte[]>

The delegate invoked when the request finishes. Called with an Exception argument if the request fails; otherwise, called with a byte array representing the image data.