import 'io_protocol/udp_heart.dart'; import 'io_protocol/udp_mainProtocol.dart'; import 'udp_senderData.dart'; class UDPSenderManage { // UDP心跳 static void sendHeart({String? userName, List? ipList, String? tokenStr, CommandUDPSendCallBack? callBack}) { CommandUDPSenderManager().managerSendData(command: UDPSendHeartCommand( userName: userName, ipList: ipList, tokenStr: tokenStr, ), callBack: callBack); } // 主通讯协议 static void sendMainProtocol({ int? command, int? commandTypeIsCalling, int? subCommand, String? lockID, String? lockIP, String? userMobile, String? userMobileIP, List? endData, CommandUDPSendCallBack? callBack}) { CommandUDPSenderManager().managerSendData(command: UDPMainProtocolCommand( command: command, commandTypeIsCalling: commandTypeIsCalling, subCommand: subCommand, lockID: lockID, lockIP: lockIP, userMobile: userMobile, userMobileIP: userMobileIP, endData: endData, ), callBack: callBack); } }