📄 mobileagent.java
字号:
/*
* Created on 2005-6-2
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package com.rainbow.mms.common;
/**
* 手机适配信息,主要用于彩信图片和铃声类型的适配
* @author Rainbow MMS Group Leader —— TrWorks
*/
public class MobileAgent {
private int agentID;
private String mobileType;
private String picType;
private int picHeight;
private int picWidth;
private int supportGif;
public int getAgentID() {
return agentID;
}
public void setAgentID(int agentID) {
this.agentID = agentID;
}
/**
* 获得 手机型号
* @return 手机型号
*/
public String getMobileType() {
return mobileType;
}
/**
* 设置 手机型号
* @param mobileType
*/
public void setMobileType(String mobileType) {
this.mobileType = mobileType;
}
/**
* 获得 手机的图片高度
* @return 手机的图片高度
*/
public int getPicHeight() {
return picHeight;
}
/**
* 设置 手机的图片高度
* @param picHeight 手机的图片高度
*/
public void setPicHeight(int picHeight) {
this.picHeight = picHeight;
}
/**
* 获得 手机最佳的图片格式类型
* @return 手机最佳的图片格式类型
*/
public String getPicType() {
return picType;
}
/**
* 设置 手机最佳的图片格式类型
* @param picType 手机最佳的图片格式类型
*/
public void setPicType(String picType) {
this.picType = picType;
}
/**
* 获得 手机的图片宽度
* @return 手机的图片宽度
*/
public int getPicWidth() {
return picWidth;
}
/**
* 设置 手机的图片宽度
* @param picWidth 手机的图片宽度
*/
public void setPicWidth(int picWidth) {
this.picWidth = picWidth;
}
/**
* 获得 手机是否支持GIF图片格式
* @return 手机是否支持GIF图片格式
*/
public int getSupportGif() {
return supportGif;
}
/**
* 设置 手机是否支持GIF图片格式
* @param supportGif 手机是否支持GIF图片格式
*/
public void setSupportGif(int supportGif) {
this.supportGif = supportGif;
}
public String toString(){
StringBuffer buffer = new StringBuffer();
buffer.append("----- Mobile Agent Info -----");
buffer.append("agentID: ");
buffer.append(agentID);
buffer.append("\n");
buffer.append("mobileType: ");
buffer.append(mobileType);
buffer.append("\n");
buffer.append("picType: ");
buffer.append(picType);
buffer.append("\n");
buffer.append("picHeight: ");
buffer.append(picHeight);
buffer.append("\n");
buffer.append("picWidth: ");
buffer.append(picWidth);
buffer.append("\n");
buffer.append("supportGIF: ");
buffer.append(supportGif);
buffer.append("\n");
return buffer.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -