package io.rong.models;

import io.rong.util.GsonUtil;

//图文消息
public class ImgTextMessage extends Message {

	private String content;
	private String title;
	private String imageUri;
	private String extra;

	public ImgTextMessage(String content, String title, String imageUri) {
		this.type = "RC:ImgTextMsg";
		this.content = content;
		this.title = title;
		this.imageUri = imageUri;
	}

	public ImgTextMessage(String content, String title, String imageUri,
			String extra) {
		this(content, title, imageUri);
		this.extra = extra;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getImageUri() {
		return imageUri;
	}

	public void setImageUri(String imageUri) {
		this.imageUri = imageUri;
	}

	public String getExtra() {
		return extra;
	}

	public void setExtra(String extra) {
		this.extra = extra;
	}

	@Override
	public String toString() {
		return GsonUtil.toJson(this, ImgTextMessage.class);
	}
}

@@ -199,16 +199,201 @@
 g extra;
+%0A%09private String url;%0A%0A%09public ImgTextMessage(String content, String title, String imageUri,%0A%09%09%09String extra, String url) %7B%0A%09%09this(content, title, imageUri, extra);%0A%09%09this.url = url;%0A%09%7D
 %0A%0A%09publi
@@ -1196,16 +1196,116 @@
 ra;%0A%09%7D%0A%0A
+%09public String getUrl() %7B%0A%09%09return url;%0A%09%7D%0A%0A%09public void setUrl(String url) %7B%0A%09%09this.url = url;%0A%09%7D%0A%0A
 %09@Overri

Update ImgTextMessage.java