sendLockUnlockAction static method

Future<void> sendLockUnlockAction(
  1. Request request,
  2. String id,
  3. bool lockUnlock, {
  4. Link? injectedClient,
})

Implementation

static Future<void> sendLockUnlockAction(
    Request request, String id, bool lockUnlock,
    {Link? injectedClient}) async {
  injectedClient ??= GraphLinkCreator.create(request);
  final req = GmakeLockUnlockActionRequest((b) {
    b..vars.deviceId = id;
    b..vars.lock = lockUnlock;
  });
  Repository.mutate(injectedClient, req.operation, req.vars.toJson());
}