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; }
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; }
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); }
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); }