/* (non-Javadoc) * @see com.google.wave.api.OperationQueue#importAttachment(org.waveprotocol.wave.model.id.WaveId, org.waveprotocol.wave.model.id.WaveletId, org.waveprotocol.wave.media.model.AttachmentId, com.google.wave.api.impl.RawAttachmentData) */ @Override public void importAttachment( WaveId waveId, WaveletId waveletId, AttachmentId attachmentId, RawAttachmentData attachmentData) { appendOperation( OperationType.ROBOT_IMPORT_ATTACHMENT, waveId, waveletId, null, Parameter.of(ParamsProperty.ATTACHMENT_ID, attachmentId.serialise()), Parameter.of(ParamsProperty.ATTACHMENT_DATA, attachmentData)); }
/* (non-Javadoc) * @see com.google.wave.api.OperationQueue#exportAttachment(org.waveprotocol.wave.media.model.AttachmentId) */ @Override public void exportAttachment(AttachmentId attachmentId) { appendOperation( OperationType.ROBOT_EXPORT_ATTACHMENT, Parameter.of(ParamsProperty.ATTACHMENT_ID, attachmentId.serialise())); }