Skip to content

Commit

Permalink
feat: add linkedId field to the BotdResult type
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Feb 27, 2024
1 parent f61a78d commit 044109e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
3 changes: 3 additions & 0 deletions res/fingerprint-server-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4993,6 +4993,9 @@ components:
requestId:
type: string
example: 1681392853693.lRiBBD
linkedId:
type: string
example: Automatic tests bot
bot:
$ref: '#/components/schemas/BotdDetectionResult'
required:
Expand Down
38 changes: 35 additions & 3 deletions src/main/java/com/fingerprint/model/BotdResult.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
BotdResult.JSON_PROPERTY_URL,
BotdResult.JSON_PROPERTY_USER_AGENT,
BotdResult.JSON_PROPERTY_REQUEST_ID,
BotdResult.JSON_PROPERTY_LINKED_ID,
BotdResult.JSON_PROPERTY_BOT
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
Expand All @@ -59,6 +60,9 @@ public class BotdResult {
public static final String JSON_PROPERTY_REQUEST_ID = "requestId";
private String requestId;

public static final String JSON_PROPERTY_LINKED_ID = "linkedId";
private String linkedId;

public static final String JSON_PROPERTY_BOT = "bot";
private BotdDetectionResult bot;

Expand Down Expand Up @@ -163,7 +167,7 @@ public String getUserAgent() {


@JsonProperty(JSON_PROPERTY_USER_AGENT)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setUserAgent(String userAgent) {
this.userAgent = userAgent;
}
Expand All @@ -189,12 +193,38 @@ public String getRequestId() {


@JsonProperty(JSON_PROPERTY_REQUEST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@JsonInclude(value = JsonInclude.Include.ALWAYS)
public void setRequestId(String requestId) {
this.requestId = requestId;
}


public BotdResult linkedId(String linkedId) {
this.linkedId = linkedId;
return this;
}

/**
* Get linkedId
* @return linkedId
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "Automatic tests bot", value = "")
@JsonProperty(JSON_PROPERTY_LINKED_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public String getLinkedId() {
return linkedId;
}


@JsonProperty(JSON_PROPERTY_LINKED_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLinkedId(String linkedId) {
this.linkedId = linkedId;
}


public BotdResult bot(BotdDetectionResult bot) {
this.bot = bot;
return this;
Expand Down Expand Up @@ -238,12 +268,13 @@ public boolean equals(Object o) {
Objects.equals(this.url, botdResult.url) &&
Objects.equals(this.userAgent, botdResult.userAgent) &&
Objects.equals(this.requestId, botdResult.requestId) &&
Objects.equals(this.linkedId, botdResult.linkedId) &&
Objects.equals(this.bot, botdResult.bot);
}

@Override
public int hashCode() {
return Objects.hash(ip, time, url, userAgent, requestId, bot);
return Objects.hash(ip, time, url, userAgent, requestId, linkedId, bot);
}

@Override
Expand All @@ -255,6 +286,7 @@ public String toString() {
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" userAgent: ").append(toIndentedString(userAgent)).append("\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" linkedId: ").append(toIndentedString(linkedId)).append("\n");
sb.append(" bot: ").append(toIndentedString(bot)).append("\n");
sb.append("}");
return sb.toString();
Expand Down

0 comments on commit 044109e

Please sign in to comment.