Beispiel #1
0
 /// <summary>
 /// Set all channels video configuration [the default wait time 3000]
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="netConfig">Video configuration</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, NETDEV_RECORD_CFG[] recordConfig)
 {
     return NETSetDevConfig(lLoginID, recordConfig, 3000);
 }
Beispiel #2
0
        /// <summary>
        /// Set all channel video configuration
        /// </summary>
        /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
        /// <param name="netConfig">Video configuration</param>
        /// <param name="waittime">waittime</param>
        /// <returns>true:succeed;false:fail</returns>
        public static bool NETSetDevConfig(int lLoginID, NETDEV_RECORD_CFG[] recordConfig, int waittime)
        {
            object[] result = new object[recordConfig.Length];
            for (int i = 0; i < recordConfig.Length; i++)
            {
                result[i]=(object)recordConfig[i];
            }
            bool returnValue = false;
            returnValue = PSetDevConfig(lLoginID, CONFIG_COMMAND.NET_DEV_RECORDCFG, result, typeof(NETDEV_RECORD_CFG), waittime);

            return returnValue;
        }
Beispiel #3
0
 /// <summary>
 /// Set the specified channel video configuration
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="lChannel">Channel number</param>
 /// <param name="netConfig">Video configuration</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, int lChannel,NETDEV_RECORD_CFG recordConfig, int waittime)
 {
     bool returnValue = false;
     returnValue = PSetDevConfig(lLoginID, lChannel, CONFIG_COMMAND.NET_DEV_RECORDCFG, (object)recordConfig, typeof(NETDEV_RECORD_CFG), waittime);
     return returnValue;
 }
Beispiel #4
0
 /// <summary>
 /// Set the specified channel configuration [the default time 3000] 
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="lChannel">Channel number</param>
 /// <param name="netConfig">Video configuration</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETSetDevConfig(int lLoginID, int lChannel, NETDEV_RECORD_CFG recordConfig)
 {
     return NETSetDevConfig(lLoginID, lChannel, recordConfig, 600);
 }
Beispiel #5
0
 /// <summary>
 ///  Obtain the specified channel video configuration
 /// </summary>
 /// <param name="lLoginID">Equipment user Login ID: CLIENT Login return values</param>
 /// <param name="lChannel">channel</param>
 /// <param name="netConfig">Video configuration</param>
 /// <param name="waittime">waittime</param>
 /// <returns>true:succeed;false:fail</returns>
 public static bool NETGetDevConfig(int lLoginID, int lChannel, ref NETDEV_RECORD_CFG recordConfig, int waittime)
 {
     object result = new object();
     bool returnValue = false;
     returnValue = PGetDevConfig(lLoginID, lChannel, CONFIG_COMMAND.NET_DEV_RECORDCFG, ref result, typeof(NETDEV_RECORD_CFG), waittime);
     recordConfig = (NETDEV_RECORD_CFG)result;
     return returnValue;
 }