NIMSDK-AOS  10.9.50
V2NIMProxyRequestMethod.java
浏览该文件的文档.
1 package com.netease.nimlib.sdk.v2.passthrough.enums;
2 
3 /**
4  * 请求方式
5  */
7 
8  /**
9  * GET请求
10  */
12  /**
13  * POST请求
14  */
16  /**
17  * PUT请求
18  */
20  /**
21  * DELETE请求
22  */
23  V2NIM_PROXY_REQUEST_METHOD_DELETE(4)
24 
25  ;
26 
27  private int value;
28 
30  this.value = value;
31  }
32 
33  public int getValue() {
34  return value;
35  }
36 
37  public static V2NIMProxyRequestMethod typeOfValue(int value) {
38  for (V2NIMProxyRequestMethod type : values()) {
39  if (type.value == value) {
40  return type;
41  }
42  }
43  return null;
44  }
45 }