Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
Implementation of Twitter Ads REST API v0
Browse files Browse the repository at this point in the history
  • Loading branch information
hudsonmendes authored and Hudson Mendes committed Aug 31, 2016
1 parent e3e4b2b commit 557928d
Show file tree
Hide file tree
Showing 416 changed files with 59,735 additions and 3,102 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.classpath
asspath
.project
.settings
.DS_Store
Expand All @@ -12,4 +12,4 @@ spring-social-core/src/test/java/exploration
**/.settings
**/bin
/.idea
*.iml
*.iml
Empty file added alerts.txt
Empty file.
9 changes: 4 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ configure(allprojects - docProjects) {
group = 'org.springframework.social'

compileJava {
sourceCompatibility=1.5
targetCompatibility=1.5
sourceCompatibility=1.8
targetCompatibility=1.8
}
compileTestJava {
sourceCompatibility=1.7
targetCompatibility=1.7
sourceCompatibility=1.8
targetCompatibility=1.8
}

[compileJava, compileTestJava]*.options*.compilerArgs = [
Expand Down Expand Up @@ -197,7 +197,6 @@ project('spring-social-twitter') {
compile ("org.springframework.social:spring-social-security:$springSocialVersion", optional)
compile ("com.fasterxml.jackson.core:jackson-core:$jacksonVersion")
compile ("com.fasterxml.jackson.core:jackson-databind:$jacksonVersion")
compile ("com.fasterxml.jackson.core:jackson-annotations:$jacksonVersion")
compile ("org.springframework.security:spring-security-crypto:$springSecurityCryptoVersion")
compile ("javax.servlet:javax.servlet-api:$servletApiVersion", provided)
testCompile ("org.springframework:spring-test:$springVersion")
Expand Down
1 change: 1 addition & 0 deletions docs/manual/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ version=1.1.3.BUILD-SNAPSHOT
jacksonVersion=2.6.1
servletApiVersion=3.0.1
springReleaseVersion=latest.release
mockitoVersion=1.9.5
mockitoVersion=1.9.5
44 changes: 44 additions & 0 deletions report.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version='1.0' encoding='UTF-8'?>
<dfxml xmloutputversion='1.0'>
<metadata
xmlns='http://afflib.org/tcpflow/'
xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
xmlns:dc='http://purl.org/dc/elements/1.1/'>
<dc:type>Feature Extraction</dc:type>
</metadata>
<creator version='1.0'>
<program>TCPFLOW</program>
<version>1.4.4</version>
<build_environment>
<compiler>4.8.2 (4.8.2 20140110 (prerelease) [ibm/gcc-4_8-branch merged from gcc-4_8-branch, revision 205847])</compiler>
<CPPFLAGS>-pthread -I/usr/local/include -D_FORTIFY_SOURCE=2 -DUTC_OFFSET=+0000 </CPPFLAGS>
<CFLAGS>-g -pthread -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wmissing-declarations -Wmissing-prototypes -Wshadow -Wwrite-strings -Wcast-align -Waggregate-return -Wbad-function-cast -Wcast-qual -Wundef -Wredundant-decls -Wdisabled-optimization -Wfloat-equal -Wmultichar -Wc++-compat -Wmissing-noreturn -Wall -Wstrict-prototypes</CFLAGS>
<CXXFLAGS>-g -pthread -g -O3 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -std=c++11 -Wall -MD -D_FORTIFY_SOURCE=2 -Wpointer-arith -Wshadow -Wwrite-strings -Wcast-align -Wredundant-decls -Wdisabled-optimization -Wfloat-equal -Wmultichar -Wmissing-noreturn -Woverloaded-virtual -Wsign-promo -funit-at-a-time -Wstrict-null-sentinel -Weffc++ </CXXFLAGS>
<LDFLAGS>-L/usr/local/lib -Wl,-Bsymbolic-functions -Wl,-z,relro</LDFLAGS>
<LIBS>-lpcap -lcairo -lfontconfig -lfreetype -lpixman-1 -lexpat -lssl -lcrypto -lz -lssl -lcrypto </LIBS>
<compilation_date>2014-01-13T17:14:40</compilation_date>
<library name="boost" version="105400"/>
</build_environment>
<execution_environment>
<os_sysname>Linux</os_sysname>
<os_release>3.13.0-55-generic</os_release>
<os_version>#94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015</os_version>
<host>oohm-bdev-02</host>
<arch>x86_64</arch>
<command_line>tcpflow -i any -C -J port 9003</command_line>
<uid>0</uid>
<start_time>2015-07-23T09:56:11Z</start_time>
</execution_environment>
</creator>
<configuration>
</configuration>
<tdelta>0</tdelta>
<configuration>
<fileobject>
<filesize>0</filesize>
<tcpflow startime='2015-07-23T02:56:30.340759Z' endtime='2015-07-23T02:56:30.340923Z' src_ipn='127.0.0.1' dst_ipn='127.0.0.1' mac_daddr='00:00:03:04:00:06' packets='2' srcport='9003' dstport='43928' family='2' />
</fileobject>
<fileobject>
<filesize>0</filesize>
<tcpflow startime='2015-07-23T02:56:30.340741Z' endtime='2015-07-23T02:56:30.390974Z' src_ipn='127.0.0.1' dst_ipn='127.0.0.1' mac_daddr='00:00:03:04:00:06' packets='4' srcport='43928' dstport='9003' family='2' />
</fileobject>
1 change: 1 addition & 0 deletions spring-social-twitter/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* Subclassed by {@link UserStreamParameters} and {@link FilterStreamParameters}.
* @author Craig Walls
*/
abstract class AbstractStreamParameters {
public abstract class AbstractStreamParameters {

protected StringBuffer track = new StringBuffer();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @author Craig Walls
*/
public class AccountSettings extends TwitterObject {

private static final long serialVersionUID = 1L;
private boolean alwaysUseHttps;
private boolean discoverableByEmail;
private boolean discoverableByMobilePhone;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* @author Craig Walls
*/
public class DirectMessage extends TwitterObject {
private static final long serialVersionUID = 1L;
private final long id;
private final String text;
private final TwitterProfile sender;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand All @@ -19,134 +19,144 @@
import java.util.Arrays;

/**
* <p>A representation of embedded media entity.</p>
* <p>
* A representation of embedded media entity.
* </p>
*
* @author bowen
*/
public class MediaEntity extends TwitterObject implements Serializable {

private static final long serialVersionUID = 1L;
private static final long serialVersionUID = 1L;

private final long id;

private final String mediaHttp;

private final String mediaHttps;

private final String url;

private final String display;

private long id;
private final String expanded;

private String mediaHttp;
private final String type;

private String mediaHttps;
private final int[] indices;

private String url;
private final VideoInfoMediaEntity videoInfo;

private String display;
public MediaEntity(
long id,
String mediaHttp,
String mediaHttps,
String url,
String display,
String expanded,
String type,
int[] indices,
VideoInfoMediaEntity videoInfo) {

private String expanded;
this.id = id;
this.mediaHttp = mediaHttp;
this.mediaHttps = mediaHttps;
this.url = url;
this.display = display;
this.expanded = expanded;
this.type = type;
this.indices = indices;
this.videoInfo = videoInfo;
}

private String type;

private int[] indices;
public long getId() {
return id;
}

public MediaEntity(long id, String mediaHttp, String mediaHttps, String url, String display, String expanded, String type, int[] indices) {
this.id = id;
this.mediaHttp = mediaHttp;
this.mediaHttps = mediaHttps;
this.url = url;
this.display = display;
this.expanded = expanded;
this.type = type;
this.indices = indices;
}

public String getMediaUrl() {
return mediaHttp;
}

public long getId() {
return this.id;
}

public String getMediaSecureUrl() {
return mediaHttps;
}

public String getMediaUrl() {
return this.mediaHttp;
}

public String getType() {
return type;
}

public String getMediaSecureUrl() {
return this.mediaHttps;
}

public String getDisplayUrl() {
return display;
}

public String getType() {
return this.type;
}

public String getExpandedUrl() {
return expanded;
}

public String getDisplayUrl() {
return display;
}

public String getUrl() {
return url;
}

public String getExpandedUrl() {
return this.expanded;
}

public int[] getIndices() {
if (indices == null || indices.length <= 0)
return new int[0];
return indices;
}

public String getUrl() {
return this.url;
}

public VideoInfoMediaEntity getVideoInfo() {
return videoInfo;
}

public int[] getIndices() {
if (this.indices == null || this.indices.length <= 0) {
return new int[0];
}
return this.indices;
}

@Override
public boolean equals(Object o) {
if (this == o)
return true;
if (o == null || getClass() != o.getClass())
return false;

@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
final MediaEntity that = (MediaEntity) o;

MediaEntity that = (MediaEntity) o;
if (id != that.id)
return false;
if (display != null ? !display.equals(that.display) : that.display != null)
return false;
if (expanded != null ? !expanded.equals(that.expanded) : that.expanded != null)
return false;
if (!Arrays.equals(indices, that.indices))
return false;
if (mediaHttp != null ? !mediaHttp.equals(that.mediaHttp) : that.mediaHttp != null)
return false;
if (mediaHttps != null ? !mediaHttps.equals(that.mediaHttps) : that.mediaHttps != null)
return false;
if (type != null ? !type.equals(that.type) : that.type != null)
return false;
if (url != null ? !url.equals(that.url) : that.url != null)
return false;

if (id != that.id) {
return false;
}
if (display != null ? !display.equals(that.display) : that.display != null) {
return false;
}
if (expanded != null ? !expanded.equals(that.expanded) : that.expanded != null) {
return false;
}
if (!Arrays.equals(indices, that.indices)) {
return false;
}
if (mediaHttp != null ? !mediaHttp.equals(that.mediaHttp) : that.mediaHttp != null) {
return false;
}
if (mediaHttps != null ? !mediaHttps.equals(that.mediaHttps) : that.mediaHttps != null) {
return false;
}
if (type != null ? !type.equals(that.type) : that.type != null) {
return false;
}
if (url != null ? !url.equals(that.url) : that.url != null) {
return false;
}

return true;
}


@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (mediaHttp != null ? mediaHttp.hashCode() : 0);
result = 31 * result + (mediaHttps != null ? mediaHttps.hashCode() : 0);
result = 31 * result + (url != null ? url.hashCode() : 0);
result = 31 * result + (display != null ? display.hashCode() : 0);
result = 31 * result + (expanded != null ? expanded.hashCode() : 0);
result = 31 * result + (type != null ? type.hashCode() : 0);
result = 31 * result + (indices != null ? Arrays.hashCode(indices) : 0);
return result;
}
return true;
}


@Override
public int hashCode() {
int result = (int) (id ^ (id >>> 32));
result = 31 * result + (mediaHttp != null ? mediaHttp.hashCode() : 0);
result = 31 * result + (mediaHttps != null ? mediaHttps.hashCode() : 0);
result = 31 * result + (url != null ? url.hashCode() : 0);
result = 31 * result + (display != null ? display.hashCode() : 0);
result = 31 * result + (expanded != null ? expanded.hashCode() : 0);
result = 31 * result + (type != null ? type.hashCode() : 0);
result = 31 * result + (indices != null ? Arrays.hashCode(indices) : 0);
return result;
}
}
Loading

0 comments on commit 557928d

Please sign in to comment.