wap2mobilemodel.java

来自「WAP PUSH后台源码,WAP PUSH后台源码」· Java 代码 · 共 44 行

JAVA
44
字号
package com.sxit.wap.wap2mobile;import java.sql.*;import java.util.*;import com.sxit.wap.common.*;import com.sxit.wap.exception.*;public class Wap2MobileModel implements java.io.Serializable {  String mobileType = "";  String userAgent = "";  public Wap2MobileModel(String mobileType, String userAgent){    if (mobileType == null) mobileType = "";    this.mobileType = mobileType;    if (userAgent == null) userAgent = "";    this.userAgent = userAgent;  }  public Wap2MobileModel(){  }  public String getMobileType() {     if (mobileType == null) mobileType = "";     return mobileType;  }  public String getUserAgent() {     if (userAgent == null) userAgent = "";     return userAgent;  }  public void setMobileType(String mobileType) {    this.mobileType = mobileType;  }  public void setUserAgent(String userAgent) {    this.userAgent = userAgent;  }  public String toString() {    String value = "";    value+= "mobileType=" + mobileType + "\n";    value+= "userAgent=" + userAgent + "\n";    return value;  }  public void copy(Wap2MobileModel other) {    this.setMobileType(other.getMobileType());    this.setUserAgent(other.getUserAgent());  }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?