package io.rong.models;

import io.rong.util.GsonUtil;

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

	private String content;
	private String imageKey;
	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.imageKey = 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 imageKey;
	}

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

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

@@ -145,19 +145,19 @@
 ng image
-Key
+Uri
 ;%0A%09priva
@@ -397,35 +397,35 @@
 nt;%0A%09%09this.image
-Key
+Uri
  = imageUri;%0A%09%7D%0A
@@ -711,27 +711,27 @@
 return image
-Key
+Uri
 ;%0A%09%7D%0A%0A%09publi
@@ -761,19 +761,19 @@
 ng image
-Key
+Uri
 ) %7B%0A%09%09th
@@ -784,19 +784,19 @@
 mage
-Key
+Uri
  = image
 Key;
@@ -791,19 +791,19 @@
  = image
-Key
+Uri
 ;%0A%09%7D%0A%0A%09@

Update ImgMessage.java