All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cc.openkit.kitChat.rongcloud.rong.models.MsgObj Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package cc.openkit.kitChat.rongcloud.rong.models;

import cc.openkit.kitChat.rongcloud.rong.util.GsonUtil;

/**
 * 用于Push中的message。
 */
public class MsgObj {
	// push 消息中的消息体。
	String content;
	// 聊天室名称。
	String objectName;
	
	public MsgObj(String content, String objectName) {
		this.content = content;
		this.objectName = objectName;
	}
	
	/**
	 * 设置content
	 *
	 */	
	public void setContent(String content) {
		this.content = content;
	}
	
	/**
	 * 获取content
	 *
	 * @return String
	 */
	public String getContent() {
		return content;
	}
	
	/**
	 * 设置objectName
	 *
	 */	
	public void setObjectName(String objectName) {
		this.objectName = objectName;
	}
	
	/**
	 * 获取objectName
	 *
	 * @return String
	 */
	public String getObjectName() {
		return objectName;
	}
	
	@Override
	public String toString() {
		return GsonUtil.toJson(this, MsgObj.class);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy