陈昶聿
3 天以前 3acf9415fce2dd21c0fd5d67805b72a8bde24a81
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
package com.smartor.service.mch;
 
/**
 * 妇幼随访单次发送结果。
 */
public class MchFollowupSendOutcome {
 
    private boolean ok;
 
    private boolean skipped;
 
    private String message;
 
    private String providerMsgId;
 
    private String requestBody;
 
    private String responseBody;
 
    public static MchFollowupSendOutcome ok(String providerMsgId, String requestBody, String responseBody) {
        MchFollowupSendOutcome outcome = new MchFollowupSendOutcome();
        outcome.ok = true;
        outcome.providerMsgId = providerMsgId;
        outcome.requestBody = requestBody;
        outcome.responseBody = responseBody;
        return outcome;
    }
 
    public static MchFollowupSendOutcome fail(String message, String requestBody, String responseBody) {
        MchFollowupSendOutcome outcome = new MchFollowupSendOutcome();
        outcome.ok = false;
        outcome.message = message;
        outcome.requestBody = requestBody;
        outcome.responseBody = responseBody;
        return outcome;
    }
 
    public static MchFollowupSendOutcome skip(String message) {
        MchFollowupSendOutcome outcome = new MchFollowupSendOutcome();
        outcome.ok = false;
        outcome.skipped = true;
        outcome.message = message;
        return outcome;
    }
 
    public boolean isOk() {
        return ok;
    }
 
    public boolean isSkipped() {
        return skipped;
    }
 
    public String getMessage() {
        return message;
    }
 
    public String getProviderMsgId() {
        return providerMsgId;
    }
 
    public String getRequestBody() {
        return requestBody;
    }
 
    public String getResponseBody() {
        return responseBody;
    }
}