Status.java
1010 Bytes
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
package com.xgimi.gimicinema.entity;
/**
* Created by wugian on 2017/7/27.
*/
public class Status {
public enum ConnectServerStatus {
SERVER_IDLE, SERVER_CONNECTING, SERVER_CONNECTED,
}
public enum LightStatus {
LIGHT_IDLE, LIGHT_CONNECTED
}
public class PlayerStatus {
public static final int PLAYER_IDLE = 0;
public static final int PLAYER_PLAY = 1;
public static final int PLAYER_PAUSE = 2;
}
public enum PlayerStatusEnum {
PLAYER_IDLE(0), PLAYER_PLAY(1), PLAYER_PAUSE(2);
private int index;
PlayerStatusEnum(int idx) {
this.index = idx;
}
public int getIndex() {
return index;
}
}
public static void main(String[] args) {
// PlayerStatusEnum playerStatusEnum = PlayerStatusEnum.PLAYER_IDLE;
// switch (playerStatusEnum){
// case 0:
// break;
// }
}
}