mirror of
				https://github.com/niushuai233/DevControl.git
				synced 2024-10-27 22:43:20 +08:00 
			
		
		
		
	feat: 新增icon枚举
This commit is contained in:
		| @@ -0,0 +1,43 @@ | ||||
| package cc.niushuai.project.devcontrol.base.enums; | ||||
|  | ||||
| import cc.niushuai.project.devcontrol.R; | ||||
|  | ||||
| /** | ||||
|  * icon枚举 | ||||
|  * | ||||
|  * @author niushuai233 | ||||
|  * @date 2022/10/25 14:57 | ||||
|  */ | ||||
| public enum IconEnum { | ||||
|     POWER_SWITCH(R.drawable.ic_device_type_switch, "开关"), | ||||
|     LIGHT(R.drawable.ic_device_type_light, "灯具"), | ||||
|     CAMERA(R.drawable.ic_device_type_camera, "摄像机"), | ||||
|     AIR_CONDITIONER(R.drawable.ic_device_type_air_conditioner, "空调"), | ||||
|     REFRIGERATOR(R.drawable.ic_device_type_refrigerator, "冰箱"), | ||||
|     SOCKET(R.drawable.ic_device_type_socket, "插座"), | ||||
|     WASHER(R.drawable.ic_device_type_washer, "洗衣机"), | ||||
|     DEVICE(R.drawable.ic_device_type_custom, "设备"), | ||||
|     ; | ||||
|  | ||||
|     /** | ||||
|      * 资源id | ||||
|      */ | ||||
|     private Integer iconId; | ||||
|     /** | ||||
|      * 描述 | ||||
|      */ | ||||
|     private String desc; | ||||
|  | ||||
|     IconEnum(Integer iconId, String desc) { | ||||
|         this.iconId = iconId; | ||||
|         this.desc = desc; | ||||
|     } | ||||
|  | ||||
|     public Integer getIconId() { | ||||
|         return iconId; | ||||
|     } | ||||
|  | ||||
|     public String getDesc() { | ||||
|         return desc; | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user