Skip to content

Commit

Permalink
Updated interface against main app
Browse files Browse the repository at this point in the history
  • Loading branch information
farion committed Dec 26, 2023
1 parent ffb0b6e commit 7b9fcaa
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 329 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ share/
zulu13*
wix
hs_err*

local-repo.json
1 change: 0 additions & 1 deletion base64-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
<version>0.4.0</version>
</parent>


<properties>
<plugin.id>base64-plugin</plugin.id>
<plugin.name>Base64</plugin.name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

@Extension
@ExtensionId("base64.io")
public class Base64IO implements OutgoingMessageHook<Base64IOConfigDTO>, IncomingMessageHook<Base64IOConfigDTO> {
public class Base64IO implements OutgoingMessageHook, IncomingMessageHook {

private Base64IOConfigDTO config;

Expand All @@ -25,20 +25,4 @@ public MessageExtensionDTO onPublishMessage(String connectionId, MessageExtensio
extensionMessageDTO.setPayload(new String(Base64Utils.encode(extensionMessageDTO.getPayload().getBytes())));
return extensionMessageDTO;
}

@Override
public Base64IOConfigDTO getConfig() {
return config;
}

@Override
public void onConfigReceived(Base64IOConfigDTO config) {
this.config = config;
}


@Override
public Class<Base64IOConfigDTO> getConfigClass() {
return Base64IOConfigDTO.class;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,14 @@
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.correomqtt.plugin.spi.IncomingMessageHookDTO;
import org.correomqtt.plugin.spi.OutgoingMessageHookDTO;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Base64IOConfigDTO implements IncomingMessageHookDTO, OutgoingMessageHookDTO {
public class Base64IOConfigDTO {

private boolean enableIncoming;

Expand Down
172 changes: 0 additions & 172 deletions default-repo.json

This file was deleted.

136 changes: 0 additions & 136 deletions local-repo.json

This file was deleted.

0 comments on commit 7b9fcaa

Please sign in to comment.