GroupStateEnum.java 479 B

1234567891011121314151617181920212223242526272829
  1. package org.jim.server.enums;
  2. /**
  3. * 群组状态 1:在线 0:离线
  4. * @author Darren
  5. * @date 2020/2/7 19:21
  6. */
  7. public enum GroupStateEnum {
  8. ON_LINE(1, "在线状态"),
  9. OFF_LINE(0, "离线状态");
  10. private int key;
  11. private String desc;
  12. private GroupStateEnum(int key, String desc) {
  13. this.key = key;
  14. this.desc = desc;
  15. }
  16. public int getKey() {
  17. return key;
  18. }
  19. public String getDesc() {
  20. return desc;
  21. }
  22. }