ProfileService

class ProfileService(okHttpClient: OkHttpClient? = null)

Service for managing Gravatar profiles.

Constructors

Link copied to clipboard
constructor(okHttpClient: OkHttpClient? = null)

Functions

Link copied to clipboard
suspend fun fetch(email: Email): Result<UserProfiles, ErrorType>

Fetches a Gravatar profile for the given email address.

suspend fun fetch(hash: Hash): Result<UserProfiles, ErrorType>

Fetches a Gravatar profile for the given hash.

suspend fun fetch(hashOrUsername: String): Result<UserProfiles, ErrorType>

Fetches a Gravatar profile for the given hash or username.

Link copied to clipboard

Fetches a Gravatar profile for the given username.

Link copied to clipboard

Fetches a Gravatar profile for the given email address.

Fetches a Gravatar profile for the given hash.

Link copied to clipboard

Fetches a Gravatar profile for the given username.