|  | @@ -25,12 +25,14 @@ public class MemberChangedMessage extends MessageContent {
 | 
											
												
													
														|  |      private int action;     // 用户行为:1.加入;2.离开;3.踢出
 |  |      private int action;     // 用户行为:1.加入;2.离开;3.踢出
 | 
											
												
													
														|  |      private String userId;
 |  |      private String userId;
 | 
											
												
													
														|  |      private String userName;
 |  |      private String userName;
 | 
											
												
													
														|  | 
 |  | +    private String avatar;
 | 
											
												
													
														|  |      private int role;       // 用户角色
 |  |      private int role;       // 用户角色
 | 
											
												
													
														|  |      private long timestamp;
 |  |      private long timestamp;
 | 
											
												
													
														|  |      private boolean metronomeSwitch;
 |  |      private boolean metronomeSwitch;
 | 
											
												
													
														|  |      private boolean handUpOn;
 |  |      private boolean handUpOn;
 | 
											
												
													
														|  |      private boolean examSongSwitch;
 |  |      private boolean examSongSwitch;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      public MemberChangedMessage(byte[] data) {
 |  |      public MemberChangedMessage(byte[] data) {
 | 
											
												
													
														|  |          String jsonStr = null;
 |  |          String jsonStr = null;
 | 
											
												
													
														|  |          try {
 |  |          try {
 | 
											
										
											
												
													
														|  | @@ -52,6 +54,7 @@ public class MemberChangedMessage extends MessageContent {
 | 
											
												
													
														|  |              JSONObject roomMemberJson = jsonObject.optJSONObject("roomMember");
 |  |              JSONObject roomMemberJson = jsonObject.optJSONObject("roomMember");
 | 
											
												
													
														|  |              userId = roomMemberJson.optString("userId");
 |  |              userId = roomMemberJson.optString("userId");
 | 
											
												
													
														|  |              userName = roomMemberJson.optString("username");
 |  |              userName = roomMemberJson.optString("username");
 | 
											
												
													
														|  | 
 |  | +            avatar = roomMemberJson.optString("avatar");
 | 
											
												
													
														|  |              role = roomMemberJson.optInt("role");
 |  |              role = roomMemberJson.optInt("role");
 | 
											
												
													
														|  |              timestamp = roomMemberJson.optLong("timestamp");
 |  |              timestamp = roomMemberJson.optLong("timestamp");
 | 
											
												
													
														|  |              metronomeSwitch = jsonObject.optBoolean("metronomeSwitch");
 |  |              metronomeSwitch = jsonObject.optBoolean("metronomeSwitch");
 | 
											
										
											
												
													
														|  | @@ -105,6 +108,14 @@ public class MemberChangedMessage extends MessageContent {
 | 
											
												
													
														|  |          return examSongSwitch;
 |  |          return examSongSwitch;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  | 
 |  | +    public String getHeadUrl() {
 | 
											
												
													
														|  | 
 |  | +        return avatar;
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  | 
 |  | +    public void setHeadUrl(String headUrl) {
 | 
											
												
													
														|  | 
 |  | +        this.avatar = headUrl;
 | 
											
												
													
														|  | 
 |  | +    }
 | 
											
												
													
														|  | 
 |  | +
 | 
											
												
													
														|  |      @Override
 |  |      @Override
 | 
											
												
													
														|  |      public byte[] encode() {
 |  |      public byte[] encode() {
 | 
											
												
													
														|  |          JSONObject jsonObject = new JSONObject();
 |  |          JSONObject jsonObject = new JSONObject();
 | 
											
										
											
												
													
														|  | @@ -112,6 +123,7 @@ public class MemberChangedMessage extends MessageContent {
 | 
											
												
													
														|  |  //            jsonObject.put("action", action);
 |  |  //            jsonObject.put("action", action);
 | 
											
												
													
														|  |              jsonObject.put("userId", userId);
 |  |              jsonObject.put("userId", userId);
 | 
											
												
													
														|  |              jsonObject.put("username", userName);
 |  |              jsonObject.put("username", userName);
 | 
											
												
													
														|  | 
 |  | +            jsonObject.put("avatar", avatar);
 | 
											
												
													
														|  |              jsonObject.put("role", role);
 |  |              jsonObject.put("role", role);
 | 
											
												
													
														|  |              jsonObject.put("timestamp", timestamp);
 |  |              jsonObject.put("timestamp", timestamp);
 | 
											
												
													
														|  |              jsonObject.put("metronomeSwitch", metronomeSwitch);
 |  |              jsonObject.put("metronomeSwitch", metronomeSwitch);
 |