package com.muse.dto; import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import java.math.BigDecimal; import org.springframework.lang.Nullable; import java.io.Serializable; import java.time.OffsetDateTime; import jakarta.validation.Valid; import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; import java.util.*; import jakarta.annotation.Generated; /** * StyleCheckResultSummary */ @JsonTypeName("StyleCheckResult_summary") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T16:47:40.290595+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0") public class StyleCheckResultSummary implements Serializable { private static final long serialVersionUID = 1L; private @Nullable BigDecimal overallScore; private @Nullable BigDecimal consistencyScore; private @Nullable Integer checkedWordCount; private @Nullable Integer markerCount; public StyleCheckResultSummary overallScore(@Nullable BigDecimal overallScore) { this.overallScore = overallScore; return this; } /** * Get overallScore * @return overallScore */ @Valid @Schema(name = "overallScore", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("overallScore") public @Nullable BigDecimal getOverallScore() { return overallScore; } @JsonProperty("overallScore") public void setOverallScore(@Nullable BigDecimal overallScore) { this.overallScore = overallScore; } public StyleCheckResultSummary consistencyScore(@Nullable BigDecimal consistencyScore) { this.consistencyScore = consistencyScore; return this; } /** * Get consistencyScore * @return consistencyScore */ @Valid @Schema(name = "consistencyScore", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("consistencyScore") public @Nullable BigDecimal getConsistencyScore() { return consistencyScore; } @JsonProperty("consistencyScore") public void setConsistencyScore(@Nullable BigDecimal consistencyScore) { this.consistencyScore = consistencyScore; } public StyleCheckResultSummary checkedWordCount(@Nullable Integer checkedWordCount) { this.checkedWordCount = checkedWordCount; return this; } /** * Get checkedWordCount * @return checkedWordCount */ @Schema(name = "checkedWordCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("checkedWordCount") public @Nullable Integer getCheckedWordCount() { return checkedWordCount; } @JsonProperty("checkedWordCount") public void setCheckedWordCount(@Nullable Integer checkedWordCount) { this.checkedWordCount = checkedWordCount; } public StyleCheckResultSummary markerCount(@Nullable Integer markerCount) { this.markerCount = markerCount; return this; } /** * Get markerCount * @return markerCount */ @Schema(name = "markerCount", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("markerCount") public @Nullable Integer getMarkerCount() { return markerCount; } @JsonProperty("markerCount") public void setMarkerCount(@Nullable Integer markerCount) { this.markerCount = markerCount; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StyleCheckResultSummary styleCheckResultSummary = (StyleCheckResultSummary) o; return Objects.equals(this.overallScore, styleCheckResultSummary.overallScore) && Objects.equals(this.consistencyScore, styleCheckResultSummary.consistencyScore) && Objects.equals(this.checkedWordCount, styleCheckResultSummary.checkedWordCount) && Objects.equals(this.markerCount, styleCheckResultSummary.markerCount); } @Override public int hashCode() { return Objects.hash(overallScore, consistencyScore, checkedWordCount, markerCount); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StyleCheckResultSummary {\n"); sb.append(" overallScore: ").append(toIndentedString(overallScore)).append("\n"); sb.append(" consistencyScore: ").append(toIndentedString(consistencyScore)).append("\n"); sb.append(" checkedWordCount: ").append(toIndentedString(checkedWordCount)).append("\n"); sb.append(" markerCount: ").append(toIndentedString(markerCount)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(@Nullable Object o) { return o == null ? "null" : o.toString().replace("\n", "\n "); } }