Пример #1
0
                public cdma_SystemTime_Type Decode(BitArrayInputStream input)
                {
                    var type = new cdma_SystemTime_Type();
                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                        case 0:
                            type.synchronousSystemTime = input.ReadBitString(0x27);
                            return type;

                        case 1:
                            type.asynchronousSystemTime = input.ReadBitString(0x31);
                            return type;
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }
Пример #2
0
                public cdma_SystemTime_Type Decode(BitArrayInputStream input)
                {
                    var type = new cdma_SystemTime_Type();

                    type.InitDefaults();
                    switch (input.ReadBits(1))
                    {
                    case 0:
                        type.synchronousSystemTime = input.ReadBitString(0x27);
                        return(type);

                    case 1:
                        type.asynchronousSystemTime = input.ReadBitString(0x31);
                        return(type);
                    }
                    throw new Exception(GetType().Name + ":NoChoice had been choose");
                }