Пример #1
0
        public static void Save(IValueSink sink, ConfirmedServiceAck value)
        {
            sink.EnterChoice((byte)value.Tag);
            switch (value.Tag)
            {
            case Tags.GetAlarmSummary:
                Value <GetAlarmSummaryWrapper> .Save(sink, (GetAlarmSummaryWrapper)value);

                break;

            case Tags.GetEnrollmentSummary:
                Value <GetEnrollmentSummaryWrapper> .Save(sink, (GetEnrollmentSummaryWrapper)value);

                break;

            case Tags.GetEventInformation:
                Value <GetEventInformationWrapper> .Save(sink, (GetEventInformationWrapper)value);

                break;

            case Tags.AtomicReadFile:
                Value <AtomicReadFileWrapper> .Save(sink, (AtomicReadFileWrapper)value);

                break;

            case Tags.AtomicWriteFile:
                Value <AtomicWriteFileWrapper> .Save(sink, (AtomicWriteFileWrapper)value);

                break;

            case Tags.CreateObject:
                Value <CreateObjectWrapper> .Save(sink, (CreateObjectWrapper)value);

                break;

            case Tags.ReadProperty:
                Value <ReadPropertyWrapper> .Save(sink, (ReadPropertyWrapper)value);

                break;

            case Tags.ReadPropertyConditional:
                Value <ReadPropertyConditionalWrapper> .Save(sink, (ReadPropertyConditionalWrapper)value);

                break;

            case Tags.ReadPropertyMultiple:
                Value <ReadPropertyMultipleWrapper> .Save(sink, (ReadPropertyMultipleWrapper)value);

                break;

            case Tags.ReadRange:
                Value <ReadRangeWrapper> .Save(sink, (ReadRangeWrapper)value);

                break;

            case Tags.ConfirmedPrivateTransfer:
                Value <ConfirmedPrivateTransferWrapper> .Save(sink, (ConfirmedPrivateTransferWrapper)value);

                break;

            case Tags.VtOpen:
                Value <VtOpenWrapper> .Save(sink, (VtOpenWrapper)value);

                break;

            case Tags.VtData:
                Value <VtDataWrapper> .Save(sink, (VtDataWrapper)value);

                break;

            case Tags.Authenticate:
                Value <AuthenticateWrapper> .Save(sink, (AuthenticateWrapper)value);

                break;

            default:
                throw new Exception();
            }
            sink.LeaveChoice();
        }
Пример #2
0
 public static void Save(IValueSink sink, ConfirmedServiceAck value)
 {
     sink.EnterChoice((byte)value.Tag);
     switch(value.Tag)
     {
         case Tags.GetAlarmSummary:
             Value<GetAlarmSummaryWrapper>.Save(sink, (GetAlarmSummaryWrapper)value);
             break;
         case Tags.GetEnrollmentSummary:
             Value<GetEnrollmentSummaryWrapper>.Save(sink, (GetEnrollmentSummaryWrapper)value);
             break;
         case Tags.GetEventInformation:
             Value<GetEventInformationWrapper>.Save(sink, (GetEventInformationWrapper)value);
             break;
         case Tags.AtomicReadFile:
             Value<AtomicReadFileWrapper>.Save(sink, (AtomicReadFileWrapper)value);
             break;
         case Tags.AtomicWriteFile:
             Value<AtomicWriteFileWrapper>.Save(sink, (AtomicWriteFileWrapper)value);
             break;
         case Tags.CreateObject:
             Value<CreateObjectWrapper>.Save(sink, (CreateObjectWrapper)value);
             break;
         case Tags.ReadProperty:
             Value<ReadPropertyWrapper>.Save(sink, (ReadPropertyWrapper)value);
             break;
         case Tags.ReadPropertyConditional:
             Value<ReadPropertyConditionalWrapper>.Save(sink, (ReadPropertyConditionalWrapper)value);
             break;
         case Tags.ReadPropertyMultiple:
             Value<ReadPropertyMultipleWrapper>.Save(sink, (ReadPropertyMultipleWrapper)value);
             break;
         case Tags.ReadRange:
             Value<ReadRangeWrapper>.Save(sink, (ReadRangeWrapper)value);
             break;
         case Tags.ConfirmedPrivateTransfer:
             Value<ConfirmedPrivateTransferWrapper>.Save(sink, (ConfirmedPrivateTransferWrapper)value);
             break;
         case Tags.VtOpen:
             Value<VtOpenWrapper>.Save(sink, (VtOpenWrapper)value);
             break;
         case Tags.VtData:
             Value<VtDataWrapper>.Save(sink, (VtDataWrapper)value);
             break;
         case Tags.Authenticate:
             Value<AuthenticateWrapper>.Save(sink, (AuthenticateWrapper)value);
             break;
         default:
             throw new Exception();
     }
     sink.LeaveChoice();
 }
Пример #3
0
        public static ConfirmedServiceAck Load(IValueStream stream)
        {
            ConfirmedServiceAck ret = null;
            Tags tag = (Tags)stream.EnterChoice();

            switch (tag)
            {
            case Tags.GetAlarmSummary:
                ret = Value <GetAlarmSummaryWrapper> .Load(stream);

                break;

            case Tags.GetEnrollmentSummary:
                ret = Value <GetEnrollmentSummaryWrapper> .Load(stream);

                break;

            case Tags.GetEventInformation:
                ret = Value <GetEventInformationWrapper> .Load(stream);

                break;

            case Tags.AtomicReadFile:
                ret = Value <AtomicReadFileWrapper> .Load(stream);

                break;

            case Tags.AtomicWriteFile:
                ret = Value <AtomicWriteFileWrapper> .Load(stream);

                break;

            case Tags.CreateObject:
                ret = Value <CreateObjectWrapper> .Load(stream);

                break;

            case Tags.ReadProperty:
                ret = Value <ReadPropertyWrapper> .Load(stream);

                break;

            case Tags.ReadPropertyConditional:
                ret = Value <ReadPropertyConditionalWrapper> .Load(stream);

                break;

            case Tags.ReadPropertyMultiple:
                ret = Value <ReadPropertyMultipleWrapper> .Load(stream);

                break;

            case Tags.ReadRange:
                ret = Value <ReadRangeWrapper> .Load(stream);

                break;

            case Tags.ConfirmedPrivateTransfer:
                ret = Value <ConfirmedPrivateTransferWrapper> .Load(stream);

                break;

            case Tags.VtOpen:
                ret = Value <VtOpenWrapper> .Load(stream);

                break;

            case Tags.VtData:
                ret = Value <VtDataWrapper> .Load(stream);

                break;

            case Tags.Authenticate:
                ret = Value <AuthenticateWrapper> .Load(stream);

                break;

            default:
                throw new Exception();
            }
            stream.LeaveChoice();
            return(ret);
        }