Пример #1
0
        /// <summary>
        /// This funtion makes API call to get SMS DeliveryStatus
        /// </summary>
        /// <param name="messageID">messageID</param>
        public DeliveryInfoObj.RootObject getSMSDeliveryStatus(string messageID)
        {
            APIRequest apiRequest = new APIRequest("outbox/" + messageID);

            apiRequest.accept = "application/json";

            if (apiService.get(apiRequest))
            {
                DeliveryInfoObj statusResponseObj = new DeliveryInfoObj();
                return(statusResponseObj.deserializeDeliveryInfo(apiService.apiResponse.getResponseData()));
            }

            throw new Exception(apiService.errorResponse);
        }
Пример #2
0
        /// <summary>
        /// This function makes API call to get MMS delivery status
        /// </summary>
        public DeliveryInfoObj.RootObject getMMSDeliveryStatus(string messageID)
        {
            APIRequest apiRequest = new APIRequest("outbox/" + messageID);

            apiRequest.accept = "application/json";

            if (apiService.get(apiRequest))
            {
                DeliveryInfoObj ro = new DeliveryInfoObj();
                return(ro.deserializeDeliveryInfo(apiService.apiResponse.getResponseData()));
            }

            return(null);
        }