Skip to content

public_metrics.impression_count #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/TweetPublicMetrics.md
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@ Engagement metrics for the Tweet at the time of the request.

| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**impressionsCount** | **Integer** | Number of times this Tweet has been viewed. | |
|**likeCount** | **Integer** | Number of times this Tweet has been liked. | |
|**quoteCount** | **Integer** | Number of times this Tweet has been quoted. | [optional] |
|**replyCount** | **Integer** | Number of times this Tweet has been replied to. | |
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@
<artifactId>twitter-api-java-sdk</artifactId>
<packaging>jar</packaging>
<name>twitter-api-java-sdk</name>
<version>2.0.3</version>
<version>2.0.4</version>
<url>https://github.com/twitterdev/twitter-api-java-sdk</url>
<description>Twitter API v2 available endpoints</description>
<scm>
Original file line number Diff line number Diff line change
@@ -59,6 +59,10 @@
@ApiModel(description = "Engagement metrics for the Tweet at the time of the request.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class TweetPublicMetrics {
public static final String SERIALIZED_NAME_IMPRESSION_COUNT = "impression_count";
@SerializedName(SERIALIZED_NAME_IMPRESSION_COUNT)
private Integer impressionCount;

public static final String SERIALIZED_NAME_LIKE_COUNT = "like_count";
@SerializedName(SERIALIZED_NAME_LIKE_COUNT)
private Integer likeCount;
@@ -78,6 +82,29 @@ public class TweetPublicMetrics {
public TweetPublicMetrics() {
}

public TweetPublicMetrics impressionsCount(Integer impressionCount) {

this.impressionCount = impressionCount;
return this;
}

/**
* Number of times this Tweet has been viewed.
* @return impressionCount
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Number of times this Tweet has been viewed.")

public Integer getImpressionCount() {
return impressionCount;
}


public void setImpressionCount(Integer impressionCount) {
this.impressionCount = impressionCount;
}


public TweetPublicMetrics likeCount(Integer likeCount) {

this.likeCount = likeCount;
@@ -180,7 +207,8 @@ public boolean equals(Object o) {
return false;
}
TweetPublicMetrics tweetPublicMetrics = (TweetPublicMetrics) o;
return Objects.equals(this.likeCount, tweetPublicMetrics.likeCount) &&
return Objects.equals(this.impressionCount, tweetPublicMetrics.impressionCount) &&
Objects.equals(this.likeCount, tweetPublicMetrics.likeCount) &&
Objects.equals(this.quoteCount, tweetPublicMetrics.quoteCount) &&
Objects.equals(this.replyCount, tweetPublicMetrics.replyCount) &&
Objects.equals(this.retweetCount, tweetPublicMetrics.retweetCount);
@@ -195,6 +223,7 @@ public int hashCode() {
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TweetPublicMetrics {\n");
sb.append(" impressionCount: ").append(toIndentedString(impressionCount)).append("\n");
sb.append(" likeCount: ").append(toIndentedString(likeCount)).append("\n");
sb.append(" quoteCount: ").append(toIndentedString(quoteCount)).append("\n");
sb.append(" replyCount: ").append(toIndentedString(replyCount)).append("\n");
@@ -221,13 +250,15 @@ private String toIndentedString(Object o) {
static {
// a set of all properties/fields (JSON key names)
openapiFields = new HashSet<String>();
openapiFields.add("impression_count");
openapiFields.add("like_count");
openapiFields.add("quote_count");
openapiFields.add("reply_count");
openapiFields.add("retweet_count");

// a set of required properties/fields (JSON key names)
openapiRequiredFields = new HashSet<String>();
openapiRequiredFields.add("impression_count");
openapiRequiredFields.add("like_count");
openapiRequiredFields.add("reply_count");
openapiRequiredFields.add("retweet_count");