Ejemplo n.º 1
0
        /// <summary>
        /// This funtion makes API call to get SMS
        /// </summary>
        /// <param name="RegistrationID">RegistrationID</param>
        public InboundSmsMessageObj.RootObject getSMS(string RegistrationID)
        {
            APIRequest apiRequest = new APIRequest("inbox/" + RegistrationID);
            apiRequest.accept = "application/json";

            if (apiService.get(apiRequest))
            {
                InboundSmsMessageObj MsgListresponseObj = new InboundSmsMessageObj();
                return MsgListresponseObj.deserializeMsgListRequest(apiService.apiResponse.getResponseData());
            }

            throw new Exception(apiService.errorResponse);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// This funtion makes API call to get SMS
        /// </summary>
        /// <param name="RegistrationID">RegistrationID</param>
        public InboundSmsMessageObj.RootObject getSMS(string RegistrationID)
        {
            APIRequest apiRequest = new APIRequest("inbox/" + RegistrationID);

            apiRequest.accept = "application/json";

            if (apiService.get(apiRequest))
            {
                InboundSmsMessageObj MsgListresponseObj = new InboundSmsMessageObj();
                return(MsgListresponseObj.deserializeMsgListRequest(apiService.apiResponse.getResponseData()));
            }

            throw new Exception(apiService.errorResponse);
        }