package io.rong.models;

import io.rong.util.GsonUtil;

//图片消息
public class ImgMessage extends Message {

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

	public String getExtra() {
		return extra;
	}

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

	public ImgMessage(String content, String imageUri) {
		this.type = "RC:ImgMsg";
		this.content = content;
		this.imageUri = imageUri;
	}

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

	public String getContent() {
		return content;
	}

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

	public String getImageKey() {
		return imageUri;
	}

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

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

@@ -68,24 +68,28 @@
 ic class Img
+Text
 Message exte
@@ -128,16 +128,39 @@
 ontent;%0A
+%09private String title;%0A
 %09private
@@ -204,102 +204,179 @@
 ra;%0A
-%0A%09public String getExtra() %7B%0A%09%09return extra;%0A%09%7D%0A%0A%09public void setExtra(String
+%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)
- %7B
+;
 %0A%09%09this.
 extr
@@ -367,37 +367,33 @@
 ra);%0A%09%09this.
-extra = extra
+url = url
 ;%0A%09%7D%0A%0A%09publi
@@ -389,32 +389,36 @@
 %0A%09%7D%0A%0A%09public Img
+Text
 Message(String c
@@ -416,32 +416,46 @@
 (String content,
+ String title,
  String imageUri
@@ -479,16 +479,20 @@
  %22RC:Img
+Text
 Msg%22;%0A%09%09
@@ -515,16 +515,38 @@
 ontent;%0A
+%09%09this.title = title;%0A
 %09%09this.i
@@ -576,24 +576,28 @@
 %0A%09public Img
+Text
 Message(Stri
@@ -599,32 +599,46 @@
 (String content,
+ String title,
  String imageUri
@@ -638,17 +638,20 @@
 mageUri,
- 
+%0A%09%09%09
 String e
@@ -673,16 +673,23 @@
 content,
+ title,
  imageUr
@@ -834,32 +834,144 @@
  = content;%0A%09%7D%0A%0A
+%09public String getTitle() %7B%0A%09%09return title;%0A%09%7D%0A%0A%09public void setTitle(String title) %7B%0A%09%09this.title = title;%0A%09%7D%0A%0A
 %09public String g
@@ -977,19 +977,19 @@
 getImage
-Key
+Uri
 () %7B%0A%09%09r
@@ -1033,11 +1033,11 @@
 mage
-Key
+Uri
 (Str
@@ -1084,16 +1084,228 @@
 ri;%0A%09%7D%0A%0A
+%09public String getExtra() %7B%0A%09%09return extra;%0A%09%7D%0A%0A%09public void setExtra(String extra) %7B%0A%09%09this.extra = extra;%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
@@ -1369,16 +1369,20 @@
 his, Img
+Text
 Message.

add url field