コード例 #1
0
        public JsonReturn SMSSend(SMSPassModel smsPassModel, SMSSendModel smsSendModel)
        {
            var    apiUrl   = GetAPIUrl("PubService", "SMSSend");
            string postData = $"{smsPassModel.GetParamData()}&{smsSendModel.GetParamData()}";

            return(Post(apiUrl, postData));
        }
コード例 #2
0
        public JsonReturn SMSRecMarkRead(SMSPassModel smsPassModel, List <int> smsRecIdList)
        {
            var    apiUrl   = GetAPIUrl("PubService", "SMSRecMarkRead");
            string postData = $"{smsPassModel.GetParamData()}&{smsRecIdList.GetParamData("smsRecIdList")}";

            return(Post(apiUrl, postData));
        }
コード例 #3
0
        public JsonReturn SMSRecPeek(SMSPassModel smsPassModel, out SMSReceivesModel smsRecs)
        {
            var apiUrl     = GetAPIUrl("PubService", "SMSRecPeek");
            var postData   = smsPassModel.GetParamData();
            var jsonReturn = Post(apiUrl, postData);

            if (jsonReturn != null)
            {
                smsRecs = JsonConvert.DeserializeObject <SMSReceivesModel>(jsonReturn.Value);
            }
            else
            {
                smsRecs = null;
            }
            return(jsonReturn);
        }
コード例 #4
0
        public JsonReturn SMSAccountInfo(SMSPassModel smsPassModel, out SMSAccountInfoModel smsAccountInfo)
        {
            var apiUrl   = GetAPIUrl("PubService", "SMSAccountInfo");
            var postData = smsPassModel.GetParamData();

            var jsonReturn = Post(apiUrl, postData);

            if (jsonReturn != null)
            {
                smsAccountInfo = jsonReturn.GetValue <SMSAccountInfoModel>();
            }
            else
            {
                smsAccountInfo = null;
            }
            return(jsonReturn);
        }