1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
| package foundation.send.sms;
|
| public enum SmsPlatForm {
|
| tencent, //腾迅SMS
| aliyun, //阿里SMS
| NotKnown;
|
| public static SmsPlatForm parse(String value) {
| if (value == null) {
| return NotKnown;
| }
|
| value = value.toLowerCase();
|
| if ("tencent".equals(value)) {
| return tencent;
| }
| else if ("aliyun".equals(value)) {
| return aliyun;
| }
|
| return NotKnown;
| }
|
| public String toChinese() {
| if (tencent == this) {
| return "腾迅SMS";
| }
| else if (aliyun == this) {
| return "阿里SMS";
| }
|
| return "未知类型";
| }
|
| }
|
|