Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.bigbluebutton.common.messages;
 
 
 
 	public static final String EJECT_ALL_VOICE_USERS_REQUEST  = "eject_all_users_from_voice_conf_request_message";
	public static final String VERSION = "0.0.1";
	public static final String MEETING_ID = "meeting_id";
	public static final String VOICE_CONF_ID = "voice_conf_id";
	public final String meetingId;
	public final String voiceConfId;
	public EjectAllUsersFromVoiceConfRequestMessage(String meetingIdString voiceConfId) {
		this. = meetingId;
		this. = voiceConfId;
	}
	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()) {
						String id = payload.get().getAsString();
						String voiceConfId = payload.get().getAsString();
						return new EjectAllUsersFromVoiceConfRequestMessage(idvoiceConfId);					
					}
			}
		}
		return null;
	}
New to GrepCode? Check out our FAQ X