sendLockUnlockAction static method

Future<void> sendLockUnlockAction(
  1. Request request,
  2. String id,
  3. bool lockUnlock
)

Implementation

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