lrj
昨天 93eb6b470773bc49ea6e1a9d4cbd914eb95d525b
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
package com.rongyichuang.player.dto;
 
/**
 * 晋级操作结果类
 */
public class PromotionResult {
    
    private Boolean success;
    private String message;
    private Integer promotedCount;
    
    public PromotionResult() {}
    
    public PromotionResult(Boolean success, String message, Integer promotedCount) {
        this.success = success;
        this.message = message;
        this.promotedCount = promotedCount;
    }
    
    public static PromotionResult success(String message, Integer promotedCount) {
        return new PromotionResult(true, message, promotedCount);
    }
    
    public static PromotionResult failure(String message) {
        return new PromotionResult(false, message, 0);
    }
    
    // Getters and Setters
    
    public Boolean getSuccess() {
        return success;
    }
    
    public void setSuccess(Boolean success) {
        this.success = success;
    }
    
    public String getMessage() {
        return message;
    }
    
    public void setMessage(String message) {
        this.message = message;
    }
    
    public Integer getPromotedCount() {
        return promotedCount;
    }
    
    public void setPromotedCount(Integer promotedCount) {
        this.promotedCount = promotedCount;
    }
}