Skip to content

Commit bf2d7eb

Browse files
committed
adding project
1 parent 6029bdb commit bf2d7eb

File tree

19 files changed

+1728
-0
lines changed

19 files changed

+1728
-0
lines changed

.classpath

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" path="src/main/webapp"/>
10+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
11+
<attributes>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
16+
<attributes>
17+
<attribute name="optional" value="true"/>
18+
<attribute name="maven.pomderived" value="true"/>
19+
</attributes>
20+
</classpathentry>
21+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
22+
<attributes>
23+
<attribute name="maven.pomderived" value="true"/>
24+
</attributes>
25+
</classpathentry>
26+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
27+
<attributes>
28+
<attribute name="maven.pomderived" value="true"/>
29+
<attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/>
30+
</attributes>
31+
</classpathentry>
32+
<classpathentry kind="output" path="target/classes"/>
33+
</classpath>

.project

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Java-FbChatBot</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.wst.jsdt.core.javascriptValidator</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.jdt.core.javabuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.wst.validation.validationbuilder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
33+
</buildSpec>
34+
<natures>
35+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
36+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
37+
<nature>org.eclipse.jdt.core.javanature</nature>
38+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
39+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
40+
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
41+
</natures>
42+
</projectDescription>

pom.xml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>in.strollup.fb</groupId>
5+
<artifactId>bot</artifactId>
6+
<packaging>war</packaging>
7+
<version>0.0.1-SNAPSHOT</version>
8+
<name>Fb Bot in Java</name>
9+
<url>http://maven.apache.org</url>
10+
<dependencies>
11+
<dependency>
12+
<groupId>junit</groupId>
13+
<artifactId>junit</artifactId>
14+
<version>3.8.1</version>
15+
<scope>test</scope>
16+
</dependency>
17+
<dependency>
18+
<groupId>org.apache.httpcomponents</groupId>
19+
<artifactId>httpclient</artifactId>
20+
<version>4.3.6</version>
21+
</dependency>
22+
<dependency>
23+
<groupId>javax.servlet</groupId>
24+
<artifactId>servlet-api</artifactId>
25+
<version>2.5</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.google.code.gson</groupId>
29+
<artifactId>gson</artifactId>
30+
<version>2.7</version>
31+
</dependency>
32+
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
33+
<dependency>
34+
<groupId>org.apache.commons</groupId>
35+
<artifactId>commons-lang3</artifactId>
36+
<version>3.4</version>
37+
</dependency>
38+
39+
</dependencies>
40+
<build>
41+
<plugins>
42+
<plugin>
43+
<groupId>org.mortbay.jetty</groupId>
44+
<artifactId>maven-jetty-plugin</artifactId>
45+
<version>6.1.10</version>
46+
<configuration>
47+
<scanIntervalSeconds>30000</scanIntervalSeconds>
48+
</configuration>
49+
</plugin>
50+
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-surefire-plugin</artifactId>
54+
<version>2.12.4</version>
55+
<configuration>
56+
<skipTests>true</skipTests>
57+
</configuration>
58+
</plugin>
59+
60+
<plugin>
61+
<groupId>org.apache.maven.plugins</groupId>
62+
<artifactId>maven-compiler-plugin</artifactId>
63+
<version>2.3.2</version>
64+
<configuration>
65+
<source>1.7</source>
66+
<target>1.7</target>
67+
<encoding>UTF-8</encoding>
68+
</configuration>
69+
</plugin>
70+
</plugins>
71+
</build>
72+
73+
</project>
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
2+
package in.strollup.fb.contract;
3+
4+
import javax.annotation.Generated;
5+
import com.google.gson.annotations.Expose;
6+
import com.google.gson.annotations.SerializedName;
7+
import org.apache.commons.lang3.builder.EqualsBuilder;
8+
import org.apache.commons.lang3.builder.HashCodeBuilder;
9+
import org.apache.commons.lang3.builder.ToStringBuilder;
10+
11+
@Generated("org.jsonschema2pojo")
12+
public class Attachment {
13+
14+
@SerializedName("type")
15+
@Expose
16+
private String type;
17+
@SerializedName("payload")
18+
@Expose
19+
private Payload payload;
20+
21+
/**
22+
*
23+
* @return
24+
* The type
25+
*/
26+
public String getType() {
27+
return type;
28+
}
29+
30+
/**
31+
*
32+
* @param type
33+
* The type
34+
*/
35+
public void setType(String type) {
36+
this.type = type;
37+
}
38+
39+
/**
40+
*
41+
* @return
42+
* The payload
43+
*/
44+
public Payload getPayload() {
45+
return payload;
46+
}
47+
48+
/**
49+
*
50+
* @param payload
51+
* The payload
52+
*/
53+
public void setPayload(Payload payload) {
54+
this.payload = payload;
55+
}
56+
57+
@Override
58+
public String toString() {
59+
return ToStringBuilder.reflectionToString(this);
60+
}
61+
62+
@Override
63+
public int hashCode() {
64+
return new HashCodeBuilder().append(type).append(payload).toHashCode();
65+
}
66+
67+
@Override
68+
public boolean equals(Object other) {
69+
if (other == this) {
70+
return true;
71+
}
72+
if ((other instanceof Attachment) == false) {
73+
return false;
74+
}
75+
Attachment rhs = ((Attachment) other);
76+
return new EqualsBuilder().append(type, rhs.type).append(payload, rhs.payload).isEquals();
77+
}
78+
79+
}
Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
package in.strollup.fb.contract;
2+
3+
import javax.annotation.Generated;
4+
import org.apache.commons.lang3.builder.EqualsBuilder;
5+
import org.apache.commons.lang3.builder.HashCodeBuilder;
6+
import org.apache.commons.lang3.builder.ToStringBuilder;
7+
import com.google.gson.annotations.Expose;
8+
import com.google.gson.annotations.SerializedName;
9+
10+
@Generated("org.jsonschema2pojo")
11+
public class Button {
12+
13+
@SerializedName("type")
14+
@Expose
15+
private String type;
16+
@SerializedName("title")
17+
@Expose
18+
private String title;
19+
@SerializedName("payload")
20+
@Expose
21+
private String payload;
22+
@SerializedName("url")
23+
@Expose
24+
private String url;
25+
26+
public String getUrl() {
27+
return url;
28+
}
29+
30+
public void setUrl(String url) {
31+
this.url = url;
32+
}
33+
34+
/**
35+
*
36+
* @return The type
37+
*/
38+
public String getType() {
39+
return type;
40+
}
41+
42+
/**
43+
*
44+
* @param type
45+
* The type
46+
*/
47+
public void setType(String type) {
48+
this.type = type;
49+
}
50+
51+
/**
52+
*
53+
* @return The title
54+
*/
55+
public String getTitle() {
56+
return title;
57+
}
58+
59+
/**
60+
*
61+
* @param title
62+
* The title
63+
*/
64+
public void setTitle(String title) {
65+
this.title = title;
66+
}
67+
68+
/**
69+
*
70+
* @return The payload
71+
*/
72+
public String getPayload() {
73+
return payload;
74+
}
75+
76+
/**
77+
*
78+
* @param payload
79+
* The payload
80+
*/
81+
public void setPayload(String payload) {
82+
this.payload = payload;
83+
}
84+
85+
@Override
86+
public String toString() {
87+
return ToStringBuilder.reflectionToString(this);
88+
}
89+
90+
@Override
91+
public int hashCode() {
92+
return new HashCodeBuilder().append(type).append(title).append(payload).toHashCode();
93+
}
94+
95+
@Override
96+
public boolean equals(Object other) {
97+
if (other == this) {
98+
return true;
99+
}
100+
if ((other instanceof Button) == false) {
101+
return false;
102+
}
103+
Button rhs = ((Button) other);
104+
return new EqualsBuilder().append(type, rhs.type).append(title, rhs.title).append(payload, rhs.payload)
105+
.isEquals();
106+
}
107+
108+
}

0 commit comments

Comments
 (0)