unregisterDevice method

Future<Result<Boolean>> unregisterDevice({
  1. required int tokenType,
  2. required String token,
  3. required List<int> otherUids,
})

Unregister Device.

ID: 6a0d3206.

Implementation

Future<Result<Boolean>> unregisterDevice({
  required int tokenType,
  required String token,
  required List<int> otherUids,
}) async {
  // Preparing the request.
  final request = AccountUnregisterDevice(
    tokenType: tokenType,
    token: token,
    otherUids: otherUids,
  );

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

  // Return the result.
  return response._to<Boolean>();
}