getAvatarDark method

Returns a dark guest avatar image response.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • guestName The guest name, e.g. "Albert".
  • size The desired avatar size, e.g. 64 for 64x64px.

Status codes:

  • 200: Custom avatar returned
  • 201: Avatar returned
  • 500

See:

Implementation

Future<_i1.DynamiteResponse<Uint8List, GuestAvatarGuestAvatarGetAvatarDarkHeaders>> getAvatarDark({
  required String guestName,
  required GuestAvatarGetAvatarDarkSize size,
}) async {
  final _request = $getAvatarDark_Request(
    guestName: guestName,
    size: size,
  );
  final _streamedResponse = await _rootClient.httpClient.send(_request);
  final _response = await _i3.Response.fromStream(_streamedResponse);

  final _serializer = $getAvatarDark_Serializer();
  return _i1.ResponseConverter<Uint8List, GuestAvatarGuestAvatarGetAvatarDarkHeaders>(_serializer).convert(_response);
}