KKSU
2024-06-24 96a6e0d312a35f4e9fc16d0c6c757768b9bfeb6e
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 cc.mrbird.febs.common.enumerates;
 
import lombok.Getter;
 
import java.util.ArrayList;
import java.util.List;
 
@Getter
public enum GameRoomTypeEnum {
    /**
     private String roomName;//名称
     private Integer roomType;//房间类型 1-初级房2-土豪房3-尊爵房
     private BigDecimal roomAmount;//进入最小金额
     private BigDecimal minAmount;//投注最小金额
     private BigDecimal maxAmount;//投注最大金额
 
     private List<BigDecimal> amounts;//投注金额
     */
 
    ROOM_THREE("ROOM_THREE", "尊爵房",3,20000,1000,5000,"1000,2000,3000,4000,5000"),
    ROOM_TWO("ROOM_TWO", "土豪房",2,5000,100,500,"100,200,300,400,500"),
    ROOM_ONE("ROOM_ONE", "初级房",1,1000,10,50,"10,20,30,40,50");
 
    private String roomCode;//名称
    private String roomName;//名称
    private Integer roomType;//房间类型 1-初级房2-土豪房3-尊爵房
    private Integer roomAmount;//进入最小金额
    private Integer minAmount;//投注最小金额
    private Integer maxAmount;//投注最大金额
 
    private String amounts;//投注金额
 
    GameRoomTypeEnum(String roomCode,
                     String roomName,
                     Integer roomType,
                     Integer roomAmount,
                     Integer minAmount,
                     Integer maxAmount,
                     String amounts) {
        this.roomCode = roomCode;
        this.roomName = roomName;
        this.roomType = roomType;
        this.roomAmount = roomAmount;
        this.minAmount = minAmount;
        this.maxAmount = maxAmount;
        this.amounts = amounts;
    }
 
    /**
     * 获取全部列表
     * @return
     */
    public List<GameRoomTypeEnum> getRoomList() {
        List<GameRoomTypeEnum> objects = new ArrayList<>();
        for (GameRoomTypeEnum value : GameRoomTypeEnum.values()) {
            objects.add(value);
        }
        return objects;
    }
 
    public GameRoomTypeEnum getRoom(int roomType) {
        for (GameRoomTypeEnum value : GameRoomTypeEnum.values()) {
            if (value.roomType == roomType) {
                return value;
            }
        }
        return null;
    }
}