@Override public IoBuffer encodeMessage ( final BinaryContext context, final Object objectMessage ) throws Exception { final org.eclipse.scada.hd.data.message.CreateQueryFailure value = (org.eclipse.scada.hd.data.message.CreateQueryFailure)objectMessage; final IoBuffer data = IoBuffer.allocate ( 64 ); data.setAutoExpand ( true ); // encode message base data.putInt ( MESSAGE_CODE ); // number of fields data.put ( (byte)2 ); // encode attributes org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeResponse ( context, data, (byte)1, value.getResponse () ); org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeErrorInformation ( context, data, (byte)2, value.getErrorInformation () ); data.flip (); return data; }
@Override public IoBuffer encodeMessage ( final BinaryContext context, final Object objectMessage ) throws Exception { final org.eclipse.scada.hd.data.message.CreateQueryFailure value = (org.eclipse.scada.hd.data.message.CreateQueryFailure)objectMessage; final IoBuffer data = IoBuffer.allocate ( 64 ); data.setAutoExpand ( true ); // encode message base data.putInt ( MESSAGE_CODE ); // number of fields data.put ( (byte)2 ); // encode attributes org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeResponse ( context, data, (byte)1, value.getResponse () ); org.eclipse.scada.core.protocol.ngp.codec.Structures.encodeErrorInformation ( context, data, (byte)2, value.getErrorInformation () ); data.flip (); return data; }