-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #131 from yvasyliev/dev
Fixed #130
- Loading branch information
Showing
6 changed files
with
105 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
75 changes: 75 additions & 0 deletions
75
src/main/java/api/longpoll/bots/model/events/poll/PollVoteNew.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
package api.longpoll.bots.model.events.poll; | ||
|
||
import api.longpoll.bots.model.events.Update; | ||
import com.google.gson.annotations.SerializedName; | ||
|
||
/** | ||
* A new vote in a public poll. | ||
*/ | ||
public class PollVoteNew implements Update.Object { | ||
/** | ||
* Poll owner ID. | ||
*/ | ||
@SerializedName("owner_id") | ||
private Integer ownerId; | ||
|
||
/** | ||
* Poll ID. | ||
*/ | ||
@SerializedName("poll_id") | ||
private Integer pollId; | ||
|
||
/** | ||
* Poll option ID. | ||
*/ | ||
@SerializedName("option_id") | ||
private Integer optionId; | ||
|
||
/** | ||
* User ID. | ||
*/ | ||
@SerializedName("user_id") | ||
private Integer userId; | ||
|
||
public Integer getOwnerId() { | ||
return ownerId; | ||
} | ||
|
||
public void setOwnerId(Integer ownerId) { | ||
this.ownerId = ownerId; | ||
} | ||
|
||
public Integer getPollId() { | ||
return pollId; | ||
} | ||
|
||
public void setPollId(Integer pollId) { | ||
this.pollId = pollId; | ||
} | ||
|
||
public Integer getOptionId() { | ||
return optionId; | ||
} | ||
|
||
public void setOptionId(Integer optionId) { | ||
this.optionId = optionId; | ||
} | ||
|
||
public Integer getUserId() { | ||
return userId; | ||
} | ||
|
||
public void setUserId(Integer userId) { | ||
this.userId = userId; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "PollVoteNew{" + | ||
"ownerId=" + ownerId + | ||
", pollId=" + pollId + | ||
", optionId=" + optionId + | ||
", userId=" + userId + | ||
'}'; | ||
} | ||
} |