001/*
002 * ===========================================================================================
003 * = COPYRIGHT
004 *          PAX Computer Technology (Shenzhen) Co., Ltd. PROPRIETARY INFORMATION
005 *   This software is supplied under the terms of a license agreement or nondisclosure
006 *   agreement with PAX Computer Technology (Shenzhen) Co., Ltd. and may not be copied or
007 *   disclosed except in accordance with the terms in that agreement.
008 *     Copyright (C) 2017-2023 PAX Computer Technology (Shenzhen) Co., Ltd. All rights reserved.
009 * Description: // Detail description about the function of this module,
010 *             // interfaces with the other modules, and dependencies.
011 * Revision History:
012 * Date                         Author                        Action
013 * 2017/04/01                   PAX                     Create/Add/Modify/Delete
014 * ===========================================================================================
015 */
016package com.pax.dal.entity;
017
018public final class BatterySipper {
019    public static final byte CELL = 0x01;
020    public static final byte PHONE = 0x02;
021    public static final byte WIFI = 0x03;
022    public static final byte BLUETOOTH = 0x04;
023    public static final byte FLASHLIGHT = 0x05;
024    public static final byte SCREEN = 0x06;
025    public static final byte APP = 0x07;
026    
027    
028    private double value;
029    private int type;
030    private double percent;
031    /**
032     * 
033     */
034    private String packageName;
035    
036    public BatterySipper() {
037        super();
038    }
039    /**
040     * <div class="zh">当{@link BatterySipper#type} = {@link BatterySipper#APP} 时,获取为应用包名,否则为Null </div>
041     * <div class="en">When {@link BatterySipper#type} = {@link BatterySipper#APP}, get the application package name, otherwise Null </div>
042     */
043    public String getPackageName() {
044        return packageName;
045    }
046    /**
047     * <div class="zh">获取耗电百分比</div><div class="en">Gets the percentage of power consumed</div>
048     */
049    public double getPercent() {
050        return percent;
051    }
052    /**
053     * <div class="zh"><p>获取耗电类型 </p>
054     *  <ul>
055     *   <li>{@link BatterySipper#CELL}</li>
056     *   <li>{@link BatterySipper#PHONE}</li>
057     *   <li>{@link BatterySipper#WIFI}</li>
058     *   <li>{@link BatterySipper#BLUETOOTH}</li>
059     *   <li>{@link BatterySipper#FLASHLIGHT}</li>
060     *   <li>{@link BatterySipper#SCREEN}</li>
061     *   <li>{@link BatterySipper#APP}</li>
062     *  </ul>
063     * </div>
064     * <div class="en"><p>Gets the type of power consumed </p>
065     *  <ul>
066     *   <li>{@link BatterySipper#CELL}</li>
067     *   <li>{@link BatterySipper#PHONE}</li>
068     *   <li>{@link BatterySipper#WIFI}</li>
069     *   <li>{@link BatterySipper#BLUETOOTH}</li>
070     *   <li>{@link BatterySipper#FLASHLIGHT}</li>
071     *   <li>{@link BatterySipper#SCREEN}</li>
072     *   <li>{@link BatterySipper#APP}</li>
073     *  </ul>
074     * </div>
075     */
076    public int getType() {
077        return type;
078    }
079    /**
080     * <div class="zh">获取耗电量,单位:mAh</div><div class="en">Obtain power consumption, unit :mAh</div>
081     */
082    public double getValue() {
083        return value;
084    }
085    /**
086     * <div class="zh">设置应用包名</div><div class="en">Set the application package name</div>
087     */
088    public void setPackageName(String packageName) {
089        this.packageName = packageName;
090    }
091    /**
092     * <div class="zh">设置耗电百分比</div><div class="en">Set the percentage of electricity consumed</div>
093     */
094    public void setPercent(double percent) {
095        this.percent = percent;
096    }
097    /**
098     * <div class="zh">设置耗电类型</div><div class="en">Set the power consumption type</div>
099     */
100    public void setType(int type) {
101        this.type = type;
102    }
103    /**
104     * <div class="zh">设置耗电量,单位:mAh</div><div class="en">Set power consumption, unit :mAh</div>
105     */
106    public void setValue(double value) {
107        this.value = value;
108    }
109    
110    
111}