Status.java 1010 Bytes
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;
//        }
    }
}