示例#1
0
        /// <summary>
        /// Pull reply SMS messages status.
        /// </summary>
        /// <param name="max">maximum number of message status</param>
        /// <returns>SmsStatusPullReplyResult</returns>
        public SmsStatusPullReplyResult pullReply(int max)
        {
            // May throw HttpRequestException
            HTTPResponse res = pull(1, max);

            SmsStatusPullReplyResult result = new SmsStatusPullReplyResult();

            // May throw JSONException
            result.parseFromHTTPResponse(res);

            return(result);
        }
示例#2
0
        /// <summary>
        /// Pull reply SMS message status for single mobile.
        /// </summary>
        /// <param name="nationCode">nation dialing code, e.g. China is 86, USA is 1</param>
        /// <param name="mobile">mobile number</param>
        /// <param name="beginTime">begin time, unix timestamp</param>
        /// <param name="endTime">end time, unix timestamp</param>
        /// <param name="max">maximum number of message status</param>
        /// <returns>SmsStatusPullReplyResult</returns>
        public SmsStatusPullReplyResult pullReply(string nationCode, string mobile,
                                                  long beginTime, long endTime, int max)
        {
            // May throw HttpRequestException
            HTTPResponse res = pull(1, nationCode, mobile, beginTime, endTime, max);

            SmsStatusPullReplyResult result = new SmsStatusPullReplyResult();

            // May throw JSONException
            result.parseFromHTTPResponse(res);

            return(result);
        }