예제 #1
0
 public GetBatteryLevelCommand(IPacketsProcessor packetsProcessor)
 {
     this.packetsProcessor = packetsProcessor ?? throw new ArgumentNullException(nameof(packetsProcessor));
     packetsProcessor.SetOnGetBatteryLevelResponse(OnGetBatteryLevelResponse);
 }
예제 #2
0
 public GetBatteryLevelCommand(IPacketsProcessor packetsProcessor)
 {
     _packetsProcessor = packetsProcessor;
     _packetsProcessor.SetOnGetBatteryLevelResponse(OnGetBatteryLevelResponse);
 }