private void returnScratchData(Buffer buffer) {
        Callback<ScratchData> callback = getFirstCallback(BeanMessageID.BT_GET_SCRATCH);
        if (callback != null) {
            callback.onResult(ScratchData.fromPayload(buffer));
        }
    }
private void returnScratchData ( Buffer buffer ) { Callback < ScratchData > callback = getFirstCallback ( BeanMessageID . BT_GET_SCRATCH ) ; if ( callback != null ) { callback . onResult ( ScratchData . fromPayload ( buffer ) ) ; } }
Call the onResult callback for {@link com.punchthrough.bean.sdk.Bean#readScratchData(com.punchthrough.bean.sdk.message.ScratchBank, com.punchthrough.bean.sdk.message.Callback)}.
@param buffer Raw message bytes from the Bean