白云机场
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

41 рядки
841 B

  1. package com.iformall.enums;
  2. /**
  3. * Created by Stormeye on 2018/08/09.
  4. */
  5. public enum EnumMsgModelType {
  6. //说明推广短信和国际/港澳台消息仅支持企业用户。
  7. YZM(0, "验证码"),
  8. TZ(1, "短信通知"),
  9. TG(2, "推广短信"),
  10. GJ(3, "国际/港澳台消息"),
  11. ;
  12. public static EnumMsgModelType getEnum(Integer code) {
  13. for (EnumMsgModelType value : values()) {
  14. if (value.getCode().equals(code)) {
  15. return value;
  16. }
  17. }
  18. return null;
  19. }
  20. private Integer code;
  21. private String message;
  22. EnumMsgModelType(Integer code, String message) {
  23. this.code = code;
  24. this.message = message;
  25. }
  26. public Integer getCode() {
  27. return code;
  28. }
  29. public String getMessage() {
  30. return message;
  31. }
  32. }