This class is used to represent the DiagnosticRequestOptionOutput.
Inheritance: StreamObject
Exemple #1
0
        /// <summary>
        /// Deserialize sub response data from byte array.
        /// </summary>
        /// <param name="byteArray">The byte array which contains sub response data.</param>
        /// <param name="currentIndex">The index special where to start.</param>
        protected override void DeserializeSubResponseDataFromByteArray(byte[] byteArray, ref int currentIndex)
        {
            PutChangesResponseSerialNumberReassignAll outValue;
            int index = currentIndex;

            if (StreamObject.TryGetCurrent <PutChangesResponseSerialNumberReassignAll>(byteArray, ref index, out outValue))
            {
                this.PutChangesResponseSerialNumberReassignAll = outValue;
            }

            PutChangesResponse putChangesResponse;

            if (StreamObject.TryGetCurrent <PutChangesResponse>(byteArray, ref index, out putChangesResponse))
            {
                this.PutChangesResponse = putChangesResponse;
            }

            this.Knowledge = StreamObject.GetCurrent <Knowledge>(byteArray, ref index);

            DiagnosticRequestOptionOutput diagnosticRequestOptionOutput;

            if (StreamObject.TryGetCurrent <DiagnosticRequestOptionOutput>(byteArray, ref index, out diagnosticRequestOptionOutput))
            {
                this.DiagnosticRequestOptionOutput = diagnosticRequestOptionOutput;
            }

            currentIndex = index;
        }
        /// <summary>
        /// Deserialize sub response data from byte array.
        /// </summary>
        /// <param name="byteArray">The byte array which contains sub response data.</param>
        /// <param name="currentIndex">The index special where to start.</param>
        protected override void DeserializeSubResponseDataFromByteArray(byte[] byteArray, ref int currentIndex)
        {
            PutChangesResponseSerialNumberReassignAll outValue;
            int index = currentIndex;

            if (StreamObject.TryGetCurrent<PutChangesResponseSerialNumberReassignAll>(byteArray, ref index, out outValue))
            {
                this.PutChangesResponseSerialNumberReassignAll = outValue;
            }

            PutChangesResponse putChangesResponse;
            if (StreamObject.TryGetCurrent<PutChangesResponse>(byteArray, ref index, out putChangesResponse))
            {
                this.PutChangesResponse = putChangesResponse;
            }

            this.Knowledge = StreamObject.GetCurrent<Knowledge>(byteArray, ref index);

            DiagnosticRequestOptionOutput diagnosticRequestOptionOutput;
            if (StreamObject.TryGetCurrent<DiagnosticRequestOptionOutput>(byteArray, ref index, out diagnosticRequestOptionOutput))
            {
                this.DiagnosticRequestOptionOutput = diagnosticRequestOptionOutput;
            }

            currentIndex = index;
        }
 /// <summary>
 /// This method aims to test DiagnosticRequestOptionOutput related adapter requirements, but // No source code is needed for this method and the method is needed for reflection.
 /// </summary>
 /// <param name="instance">Specify the instance which need to be verified.</param>
 /// <param name="site">Specify the ITestSite instance.</param>
 public void VerifyDiagnosticRequestOptionOutput(DiagnosticRequestOptionOutput instance, ITestSite site)
 {
     // No source code is needed for this method, but the method is needed for reflection
 }