dengzedong
2024-12-19 85b2001c0ec2f1adc598db3bf47ad457dcca7074
提交 | 用户 | 时间
149dd0 1 package com.iailab.netsdk.lib.enumeration;
H 2
3 /**
4  * @author 47081
5  * @version 1.0
6  * @description 诊断结果状态
7  * @date 2021/2/22
8  */
9 public enum EM_COLLECTIVITY_STATE {
10   /** 成功 */
11   EM_COLLECTIVITY_STATE_SUCCESSED,
12   /** 失败 */
13   EM_COLLECTIVITY_STATE_FAILED;
14
15   /**
16    * 默认返回failed
17    * @param state
18    * @return
19    */
20   public EM_COLLECTIVITY_STATE getCollectivityState(int state) {
21     for (EM_COLLECTIVITY_STATE collectivityState : EM_COLLECTIVITY_STATE.values()) {
22       if (collectivityState.ordinal() == state) {
23         return collectivityState;
24       }
25     }
26     return EM_COLLECTIVITY_STATE_FAILED;
27   }
28 }