Skip to content

Commit

Permalink
Merge pull request #56 from yvasyliev/revert-54-master
Browse files Browse the repository at this point in the history
Revert "Changed MessageEvent.payload to Map"
  • Loading branch information
yvasyliev authored May 29, 2021
2 parents 4643f24 + 05b25c4 commit f14dddf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.github.yvasyliev</groupId>
<artifactId>java-vk-bots-longpoll-api</artifactId>
<packaging>jar</packaging>
<version>1.5.2</version>
<version>1.5.1</version>

<name>Java VK Bots Long Poll API</name>
<description>A Java library to create VK bots using Bots Long Poll API</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package api.longpoll.bots.model.events.messages;

import api.longpoll.bots.model.events.EventObject;
import com.google.gson.JsonObject;
import com.google.gson.annotations.SerializedName;

/**
Expand Down Expand Up @@ -30,7 +29,7 @@ public class MessageEvent implements EventObject {
* Additional info.
*/
@SerializedName("payload")
private JsonObject payload;
private String payload;

/**
* Message ID.
Expand Down Expand Up @@ -62,11 +61,11 @@ public void setEventId(String eventId) {
this.eventId = eventId;
}

public JsonObject getPayload() {
public String getPayload() {
return payload;
}

public void setPayload(JsonObject payload) {
public void setPayload(String payload) {
this.payload = payload;
}

Expand Down

0 comments on commit f14dddf

Please sign in to comment.