getStarsGiftOptions method

Future<Result<Vector<StarsGiftOptionBase>>> getStarsGiftOptions({
  1. InputUserBase? userId,
})

Get Stars Gift Options.

ID: d3c96bc8.

Implementation

Future<Result<Vector<StarsGiftOptionBase>>> getStarsGiftOptions({
  InputUserBase? userId,
}) async {
  // Preparing the request.
  final request = PaymentsGetStarsGiftOptions(userId: userId);

  // Invoke and wait for response.
  final response = await _c.invoke(request);

  // Return the result.
  return response._toVector<StarsGiftOptionBase>();
}