com.github.qcloudsms.SmsMultiSenderResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sms Show documentation
Show all versions of sms Show documentation
this Repository is responsible for qlcoud sms sdk
package com.github.qcloudsms;
import java.util.ArrayList;
public class SmsMultiSenderResult {
/*
{
"result": 0,
"errmsg": "OK",
"ext": "",
"detail": [
{
"result": 0,
"errmsg": "OK",
"mobile": "13788888888",
"nationcode": "86",
"sid": "xxxxxxx",
"fee": 1
},
{
"result": 0,
"errmsg": "OK",
"mobile": "13788888889",
"nationcode": "86",
"sid": "xxxxxxx",
"fee": 1
}
]
}
*/
public class Detail {
public int result;
public String errMsg = "";
public String phoneNumber = "";
public String nationCode = "";
public String sid = "";
public int fee;
public String toString() {
if (0 == result) {
return String.format(
"Detail result %d\nerrMsg %s\nphoneNumber %s\nnationCode %s\nsid %s\nfee %d",
result, errMsg, phoneNumber, nationCode, sid, fee);
} else {
return String.format(
"result %d\nerrMsg %s\nphoneNumber %s\nnationCode %s",
result, errMsg, phoneNumber, nationCode);
}
}
}
public int result;
public String errMsg = "";
public String ext = "";
public ArrayList details;
public String toString() {
return String.format(
"SmsMultiSenderResult\nresult %d\nerrMsg %s\next %s\ndetails %s",
result, errMsg, ext, details);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy