registerDevice method
Register Device.
ID: ec86017a
.
Implementation
Future<Result<Boolean>> registerDevice({
required bool noMuted,
required int tokenType,
required String token,
required bool appSandbox,
required Uint8List secret,
required List<int> otherUids,
}) async {
// Preparing the request.
final request = AccountRegisterDevice(
noMuted: noMuted,
tokenType: tokenType,
token: token,
appSandbox: appSandbox,
secret: secret,
otherUids: otherUids,
);
// Invoke and wait for response.
final response = await _c.invoke(request);
// Return the result.
return response._to<Boolean>();
}