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/**
018 * <div class="zh">运营商网络信息。</div> <div class="en">Operator network information.</div>
019 * @author Jesse.C
020 *
021 */
022public class OperatorInfo {
023    private String mOperatorAlphaLong;
024    private String mOperatorAlphaShort;
025    private String mOperatorNumeric;
026    private OperatorInfo.State mState;
027    
028    public OperatorInfo() {
029        super();
030    }
031
032    public OperatorInfo(String mOperatorAlphaLong, String mOperatorAlphaShort, String mOperatorNumeric, State mState) {
033        super();
034        this.mOperatorAlphaLong = mOperatorAlphaLong;
035        this.mOperatorAlphaShort = mOperatorAlphaShort;
036        this.mOperatorNumeric = mOperatorNumeric;
037        this.mState = mState;
038    }
039    
040    /**
041     * <div class="zh">获取运营商长名称。</div> <div class="en">Get the operator long name.</div>
042     * @return <div class="zh">运营商长名称。</div> <div class="en">Operator long name.</div>
043     */
044    public String getmOperatorAlphaLong() {
045        return mOperatorAlphaLong;
046    }
047
048    /**
049     * <div class="zh">设置运营商长名称。</div> <div class="en">Set the operator long name.</div>
050     * @param mOperatorAlphaLong <div class="zh">运营商长名称。</div> <div class="en">Operator long name.</div>
051     */
052    public void setmOperatorAlphaLong(String mOperatorAlphaLong) {
053        this.mOperatorAlphaLong = mOperatorAlphaLong;
054    }
055
056    /**
057     * <div class="zh">获取运营商短名称。</div> <div class="en">Get the operator short name.</div>
058     * @return <div class="zh">运营商短名称。</div> <div class="en">Operator short name.</div>
059     */
060    public String getmOperatorAlphaShort() {
061        return mOperatorAlphaShort;
062    }
063
064    /**
065     * <div class="zh">设置运营商短名称。</div> <div class="en">Set the operator short name.</div>
066     * @param mOperatorAlphaShort <div class="zh">运营商短名称。</div> <div class="en">Operator short name.</div>
067     */
068    public void setmOperatorAlphaShort(String mOperatorAlphaShort) {
069        this.mOperatorAlphaShort = mOperatorAlphaShort;
070    }
071
072    /**
073     * <div class="zh">获取运营商代码。</div> <div class="en">Get the operator code.</div>
074     * @return <div class="zh">运营商代码。</div> <div class="en">Operator code.</div>
075     */
076    public String getmOperatorNumeric() {
077        return mOperatorNumeric;
078    }
079
080    /**
081     * <div class="zh">设置运营商代码。</div> <div class="en">Set the operator code.</div>
082     * @param mOperatorNumeric <div class="zh">运营商代码。</div> <div class="en">Operator code.</div>
083     */
084    public void setmOperatorNumeric(String mOperatorNumeric) {
085        this.mOperatorNumeric = mOperatorNumeric;
086    }
087
088    /**
089     * <div class="zh">获取网络状态。</div> <div class="en">Get the network state.</div>
090     * @return <div class="zh">网络状态。</div> <div class="en">Network state.</div> {@link State}
091     */
092    public OperatorInfo.State getmState() {
093        return mState;
094    }
095
096    /**
097     * <div class="zh">设置网络状态。</div> <div class="en">Set the network state.</div>
098     * @param mState <div class="zh">网络状态。</div> <div class="en">Network state.</div> {@link State}
099     */
100    public void setmState(OperatorInfo.State mState) {
101        this.mState = mState;
102    }
103
104    @Override
105    public String toString() {
106        return "OperatorInfo [mOperatorAlphaLong=" + mOperatorAlphaLong + ", mOperatorAlphaShort="
107                + mOperatorAlphaShort + ", mOperatorNumeric=" + mOperatorNumeric + ", mState=" + mState + "]";
108    }
109
110    /**
111     * <div class="zh">网络状态。</div> <div class="en">Network state.</div>
112     * @author Jesse.C
113     *
114     */
115    public static enum State {
116        /**
117         * <div class="zh">未知。</div> <div class="en">Unkown.</div>
118         */
119        UNKNOWN,
120        /**
121         * <div class="zh">可用网络。</div> <div class="en">Available network.</div>
122         */
123        AVAILABLE,
124        /**
125         * <div class="zh">当前连接网络。</div> <div class="en">Current connection network.</div>
126         */
127        CURRENT,
128        /**
129         * <div class="zh">禁用网络。</div> <div class="en">Forbidden network.</div>
130         */
131        FORBIDDEN;
132
133        private State() {
134        }
135    }
136}