Ejemplo n.º 1
0
        public BaseResult<USSDResult> SendUSSD(ParameterizedMap map)
        {
            UnboxParameterizedMap param = new UnboxParameterizedMap(map);
            GSMCommunication.Feature.Call call = new GSMCommunication.Feature.Call(param.TryGet<BasicInformation>("base"));
            BaseResult<USSDResult> result = call.SendUSSD(param.TryGet<string>("code"), param.TryGet<string>("number"));
            result.ID = param.TryGet<string>("id");

            IInternalLogging logging = ObjectPool.Instance.Resolve<IInternalLogging>();
            if (logging != null)
            {
                logging.Write(result);
            }
            return result;
        }
Ejemplo n.º 2
0
        public BaseResult<GenericTypeResult<bool>> Answer(ParameterizedMap map)
        {
            UnboxParameterizedMap param = new UnboxParameterizedMap(map);
            GSMCommunication.Feature.Call call = new GSMCommunication.Feature.Call(param.TryGet<BasicInformation>("base"));
            BaseResult<GenericTypeResult<bool>> result = call.Answer();
            result.ID = param.TryGet<string>("id");

            IInternalLogging logging = ObjectPool.Instance.Resolve<IInternalLogging>();
            if (logging != null)
            {
                logging.Write(result);
            }
            return result;
        }
Ejemplo n.º 3
0
        public BaseResult <USSDResult> SendUSSD(ParameterizedMap map)
        {
            UnboxParameterizedMap param = new UnboxParameterizedMap(map);

            GSMCommunication.Feature.Call call   = new GSMCommunication.Feature.Call(param.TryGet <BasicInformation>("base"));
            BaseResult <USSDResult>       result = call.SendUSSD(param.TryGet <string>("code"), param.TryGet <string>("number"));

            result.ID = param.TryGet <string>("id");

            IInternalLogging logging = ObjectPool.Instance.Resolve <IInternalLogging>();

            if (logging != null)
            {
                logging.Write(result);
            }
            return(result);
        }
Ejemplo n.º 4
0
        public BaseResult <GenericTypeResult <bool> > Answer(ParameterizedMap map)
        {
            UnboxParameterizedMap param = new UnboxParameterizedMap(map);

            GSMCommunication.Feature.Call          call   = new GSMCommunication.Feature.Call(param.TryGet <BasicInformation>("base"));
            BaseResult <GenericTypeResult <bool> > result = call.Answer();

            result.ID = param.TryGet <string>("id");

            IInternalLogging logging = ObjectPool.Instance.Resolve <IInternalLogging>();

            if (logging != null)
            {
                logging.Write(result);
            }
            return(result);
        }