Skip to content

Commit

Permalink
changed variable name message -> payload
Browse files Browse the repository at this point in the history
  • Loading branch information
NehaSelvan1512 committed Sep 25, 2023
1 parent d24a242 commit 5610f8f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions plugins/mqtt-stream/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies {

// https://mvnrepository.com/artifact/com.hivemq/hivemq-mqtt-client
implementation group: 'com.hivemq', name: 'hivemq-mqtt-client', version: hivemq_mqttclient_version
//TODO: remove
// https://mvnrepository.com/artifact/org.bouncycastle/bcprov-jdk15on
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.70'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,20 @@

public class MqttMessage implements StreamMessage {

@Getter
final String message;

final String payload;
@Getter
final String topic;


public MqttMessage( String message, String topic ) {
this.message = message;
public MqttMessage( String payload, String topic ) {
this.payload = payload;
this.topic = topic;
}


public String getMessage() {
return this.payload;
}

}

0 comments on commit 5610f8f

Please sign in to comment.