public void Execute(PairDeviceOptions opts)
 {
     if (!string.IsNullOrEmpty(opts.Mac))
     {
         PairWithMac(opts.Mac);
     }
     else
     {
         PairWithName(opts.DeviceName);
     }
 }
 public static void Execute(PairDeviceOptions opts)
 {
     if (!string.IsNullOrEmpty(opts.Mac))
     {
         PairWithMac(new MacAddress(opts.Mac), opts.DiscoveryTime, opts.Type, opts.Pin);
     }
     else if (!string.IsNullOrEmpty(opts.DeviceName))
     {
         PairWithName(opts.DeviceName, opts.DiscoveryTime, opts.Type, opts.Pin);
     }
     else
     {
         throw new Exception("Mac or device name must be specified");
     }
 }