package com.qianwen.core.notify; /* loaded from: blade-starter-notify-9.3.0.0-SNAPSHOT.jar:org/springblade/core/notify/DefaultNotifyType.class */ public enum DefaultNotifyType implements NotifyType { sms("短信"), email("邮件"), voice("语音"), dingTalk("钉钉"), weiXinMini("微信小程序"), weiXinMp("微信公众号"), weiXinQY("企业微信"), internalMessage("站内信"); private String name; DefaultNotifyType(final String name) { this.name = name; } @Override // com.qianwen.core.notify.NotifyType public String getName() { return this.name; } @Override // com.qianwen.core.notify.NotifyType public String getId() { return name(); } public static DefaultNotifyType of(String id) { if (id == null) { return null; } DefaultNotifyType[] values = values(); for (DefaultNotifyType nameEnum : values) { String currentId = nameEnum.getId(); if (currentId.equals(id)) { return nameEnum; } } return null; } }