1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.netsdk.lib.enumeration;
 
/**
 * @author 47081
 * @version 1.0
 * @description 视频诊断录像保存位置
 * @date 2021/2/22
 */
public enum EM_SOURCE_VIDEO_LOCATION {
  /** 未知 */
  EM_SOURCE_VIDEO_LOCATION_UNKNOWN,
  /** 存于设备 */
  EM_SOURCE_VIDEO_LOCATION_DEVICE,
  /** 存于平台 */
  EM_SOURCE_VIDEO_LOCATION_CENTER,
  /** 存于第三方云 */
  EM_SOURCE_VIDEO_LOCATION_THIRD;
 
  public EM_SOURCE_VIDEO_LOCATION getVideoLocation(int location) {
    for (EM_SOURCE_VIDEO_LOCATION videoLocation : EM_SOURCE_VIDEO_LOCATION.values()) {
      if (videoLocation.ordinal() == location) {
        return videoLocation;
      }
    }
    return EM_SOURCE_VIDEO_LOCATION_UNKNOWN;
  }
}