package com.iailab.netsdk.lib.enumeration; /** * @author 47081 * @version 1.0 * @description 綛喝伾�弱�榊瓜�� * @date 2021/2/22 */ public enum NET_EM_OFFLINE_CALL_TYPE { /** ���� */ NET_EM_OFFLINE_CALL_UNKNOWN(-1, "����"), /** ��鎖�弱�� */ NET_EM_OFFLINE_CALL_ONLINECALL(0, "��鎖�弱��"), /** �㊦鎖�弱�� */ NET_EM_OFFLINE_CALL_OFFLINECALL(1, "�㊦鎖�弱��"), /** �銀� */ NET_EM_OFFLINE_CALL_NONE(255, "�銀�"); private int type; private String desc; NET_EM_OFFLINE_CALL_TYPE(int type, String desc) { this.type = type; this.desc = desc; } public int getType() { return type; } public String getDesc() { return desc; } public static NET_EM_OFFLINE_CALL_TYPE getOfflineCallType(int type) { for (NET_EM_OFFLINE_CALL_TYPE offlineCall : NET_EM_OFFLINE_CALL_TYPE.values()) { if (offlineCall.type == type) { return offlineCall; } } return NET_EM_OFFLINE_CALL_UNKNOWN; } }