sendDevice method

Future<bool> sendDevice(
  1. String userId,
  2. String deviceId,
  3. String startDate,
  4. String endDate,
  5. String authType,
  6. String repeatType,
)

发送设备

Implementation

Future<bool> sendDevice(String userId, String deviceId, String startDate,
    String endDate, String authType, String repeatType) async {
  try {
    await methodChannel.invokeMethod("sendDevice", {
      "userId": userId,
      "deviceId": deviceId,
      "startDate": startDate,
      "endDate": endDate,
      "authType": authType,
      "repeatType": repeatType,
    });
    return Future.value(true);
  } catch (e) {
    rethrow;
  }
}