Fix bug in ChosenInlineQuery

Added JAR sources
This commit is contained in:
Rubenlagus 2016-04-02 18:45:04 +02:00
parent 885791b927
commit d00df14aba
2 changed files with 16 additions and 3 deletions

16
pom.xml
View File

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>
@ -82,6 +82,18 @@
<sourceDirectory>${project.basedir}/src/main/java</sourceDirectory>
<pluginManagement>
<plugins>
<plugin> <!-- Create sources.jar -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

View File

@ -17,9 +17,10 @@ import java.io.IOException;
* @date 01 of January of 2016
*/
public class ChosenInlineQuery implements IBotApiObject {
public static final String RESULTID_FIELD = "id";
public static final String RESULTID_FIELD = "result_id";
public static final String FROM_FIELD = "from";
public static final String QUERY_FIELD = "query";
@JsonProperty(RESULTID_FIELD)
private String resultId; ///< The unique identifier for the result that was chosen.
@JsonProperty(FROM_FIELD)