setChimeType method

Future<Map<String, dynamic>> setChimeType(
  1. String deviceSerial,
  2. int type,
  3. int duration, {
  4. int? channelNo,
})

Implementation

Future<Map<String, dynamic>> setChimeType(
  String deviceSerial,
  int type, // 1-mechanical, 2-electronic, 3-none
  int duration, {
  int? channelNo,
}) async {
  final body = <String, dynamic>{
    'deviceSerial': deviceSerial,
    'type': type,
    'duration': duration,
  };
  if (channelNo != null) body['channelNo'] = channelNo;
  return _client.post('/api/lapp/device/chime/set', body);
}