/// <summary>
        ///
        /// </summary>
        /// <param name="msgId"></param>
        /// <param name="askId"></param>
        /// <param name="vin"></param>
        /// <returns></returns>
        public static JTNEPackage CreateCustomMsgId(this byte msgId, string vin, JTNEAskId askId)
        {
            JTNEPackage jTNEPackage = new JTNEPackage();

            jTNEPackage.AskId = askId.ToByteValue();
            jTNEPackage.MsgId = msgId;
            jTNEPackage.VIN   = vin;
            return(jTNEPackage);
        }
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="TJTNEBodies"></typeparam>
        /// <param name="msgId"></param>
        /// <param name="vin"></param>
        /// <param name="askId"></param>
        /// <param name="bodies"></param>
        /// <returns></returns>
        public static JTNEPackage_Platform CreateCustomMsgId <TJTNEBodies>(this byte msgId, string vin, JTNEAskId askId, TJTNEBodies bodies)
            where TJTNEBodies : JTNEBodies
        {
            JTNEPackage_Platform jTNEPackage = new JTNEPackage_Platform();

            jTNEPackage.AskId  = askId.ToByteValue();
            jTNEPackage.MsgId  = msgId;
            jTNEPackage.Bodies = bodies;
            jTNEPackage.VIN    = vin;
            return(jTNEPackage);
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="msgId"></param>
        /// <param name="vin"></param>
        /// <param name="askId"></param>
        /// <returns></returns>
        public static JTNEPackage_Platform Create(this JTNEMsgId_Platform msgId, string vin, JTNEAskId askId)
        {
            JTNEPackage_Platform jTNEPackage = new JTNEPackage_Platform();

            jTNEPackage.AskId = askId.ToByteValue();
            jTNEPackage.MsgId = msgId.ToByteValue();
            jTNEPackage.VIN   = vin;
            return(jTNEPackage);
        }
        /// <summary>
        ///
        /// </summary>
        /// <typeparam name="TJTNEBodies"></typeparam>
        /// <param name="msgId"></param>
        /// <param name="askId"></param>
        /// <param name="vin"></param>
        /// <param name="bodies"></param>
        /// <returns></returns>
        public static JTNEPackage Create <TJTNEBodies>(this JTNEMsgId msgId, string vin, JTNEAskId askId, TJTNEBodies bodies)
            where TJTNEBodies : JTNEBodies
        {
            JTNEPackage jTNEPackage = new JTNEPackage();

            jTNEPackage.AskId  = askId.ToByteValue();
            jTNEPackage.MsgId  = msgId.ToByteValue();
            jTNEPackage.Bodies = bodies;
            jTNEPackage.VIN    = vin;
            return(jTNEPackage);
        }
Esempio n. 5
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="msgId"></param>
        /// <param name="vin"></param>
        /// <param name="askId"></param>
        /// <returns></returns>
        public static JTNEPackage_Device Create(this JTNEMsgId_Device msgId, string vin, JTNEAskId askId)
        {
            JTNEPackage_Device jTNEPackage = new JTNEPackage_Device();

            jTNEPackage.AskId = askId.ToByteValue();
            jTNEPackage.MsgId = msgId.ToByteValue();
            jTNEPackage.VIN   = vin;
            return(jTNEPackage);
        }