sendDevice method
发送设备
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;
}
}