GroupStateEnum.java 487 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. OFF_LINE(1, "离线状态"),
  9. ON_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. }