Exemple #1
0
 public static RspChangeoverInfo ActivateKeyset(BaseDevice device, int keysetSuperseded, int keysetActivated)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.ActivateKeyset(device, keysetSuperseded, keysetActivated));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.ActivateKeyset(device, keysetSuperseded, keysetActivated));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support ActivateKeyset", device.DeviceType.ToString()));
     }
 }
Exemple #2
0
 public static int ViewKmfRsi(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.ViewKmfRsi(device));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.ViewKmfRsi(device));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support ViewKmfRsi", device.DeviceType.ToString()));
     }
 }
Exemple #3
0
 public static List <RspKeysetInfo> ViewKeysetTaggingInfo(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.ViewKeysetTaggingInfo(device));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.ViewKeysetTaggingInfo(device));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support ViewKeysetTaggingInfo", device.DeviceType.ToString()));
     }
 }
Exemple #4
0
 public static RspRsiInfo ChangeRsi(BaseDevice device, int rsiOld, int rsiNew, int mnp)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.ChangeRsi(device, rsiOld, rsiNew, mnp));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.ChangeRsi(device, rsiOld, rsiNew, mnp));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support ChangeRsi", device.DeviceType.ToString()));
     }
 }
Exemple #5
0
 public static RspRsiInfo LoadConfig(BaseDevice device, int kmfRsi, int mnp)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         return(InteractTwiKfdtool.LoadConfig(device, kmfRsi, mnp));
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         return(InteractDliIp.LoadConfig(device, kmfRsi, mnp));
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support LoadConfig", device.DeviceType.ToString()));
     }
 }
Exemple #6
0
 public static void EraseAllKeys(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.EraseAllKeys(device);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.EraseAllKeys(device);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support EraseAllKeys", device.DeviceType.ToString()));
     }
 }
Exemple #7
0
 public static void EraseKey(BaseDevice device, List <CmdKeyItem> keys)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.EraseKey(device, keys);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.EraseKey(device, keys);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support EraseKey", device.DeviceType.ToString()));
     }
 }
Exemple #8
0
 public static void CheckTargetMrConnection(BaseDevice device)
 {
     if (device.DeviceType == BaseDevice.DeviceTypeOptions.TwiKfdtool)
     {
         InteractTwiKfdtool.CheckTargetMrConnection(device);
     }
     else if (device.DeviceType == BaseDevice.DeviceTypeOptions.DliIp)
     {
         InteractDliIp.CheckTargetMrConnection(device);
     }
     else
     {
         throw new Exception(string.Format("The device type {0} does not support CheckTargetMrConnection", device.DeviceType.ToString()));
     }
 }