public ATTEvent_t Parse(IStructReader reader)
        {
            Logger logger = LogManager.GetLogger("TSAPIClient");

            try
            {
                logger.Info("ATTConsultationCallConfParser.Parse: eventType=ATT_CONSULTATION_CALL_CONF");

                object result;

                if (reader.TryReadStruct(typeof(ATTConsultationCallConfEvent_t), out result))
                {
                    logger.Info("ATTConsultationCallConfParser.Parse: successfully read consultation call confirmation event!");

                    ATTConsultationCallConfEvent_t consultationCall = (ATTConsultationCallConfEvent_t)result;

                    logger.Info("ATTConsultationCallConfParser.Parse: consultationCall.Ucid.Value={0}", consultationCall.ucid.value);

                    ATTEvent_t attEvent = new ATTEvent_t()
                    {
                        eventType = (ushort)eventType
                    };

                    attEvent.u.consultationCall = consultationCall;

                    return(attEvent);
                }
            }
            catch (Exception err)
            {
                logger.Error(string.Format("Error in ATTConsultationCallConfParser.Parse: {0}", err));
            }

            return(null);
        }
Пример #2
0
 public ConsultationCallEventReturn(CstaConfirmationEvent a1, ATTEvent_t a2)
 {
     Csta = a1.consultationCall;
     Att  = a2.consultationCall;
 }