Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bigbluebutton.common.messages;
 
 import java.util.Map;
 
	public static final String SEND_WHITEBOARD_ANNOTATION_REPLY = "send_whiteboard_shape_message";
	public static final String VERSION = "0.0.1";
	public final String meetingId;
	public final String requesterId;
	public final String whiteboardId;
	public final Map<StringObjectshape;
	public SendWhiteboardAnnotationReplyMessage(String meetingIdString requesterId,
			String whiteboardIdMap<StringObjectshape) {
		this. = meetingId;
		this. = whiteboardId;
		this. = requesterId;
		this. = shape;
	}
	public String toJson() {
		HashMap<StringObjectpayload = new HashMap<StringObject>();
		payload.put(.);
		return MessageBuilder.buildJson(headerpayload);
	}
		JsonParser parser = new JsonParser();
		JsonObject obj = (JsonObjectparser.parse(message);
		if (obj.has("header") && obj.has("payload")) {
			JsonObject header = (JsonObjectobj.get("header");
			JsonObject payload = (JsonObjectobj.get("payload");
			if (header.has("name")) {
				String messageName = header.get("name").getAsString();
					if (payload.has(.
							&& payload.has(.)
							&& payload.has(.)) {
						String meetingId = payload.get(.).getAsString();
						String requesterId = payload.get(.).getAsString();
						String whiteboardId = payload.get(.).getAsString();
						JsonObject shape = (JsonObjectpayload.get(.);
						Util util = new Util();
						Map<StringObjectannotation = util.extractOuterAnnotation(shape);
						return new SendWhiteboardAnnotationReplyMessage(meetingIdrequesterId,
								whiteboardIdannotation);
					}
			}
		}
		return null;
	}
New to GrepCode? Check out our FAQ X