package com.airlock.iam.authentication.infrastructure.transfer.response;

import com.fasterxml.jackson.annotation.JsonTypeName;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

@JsonTypeName("authentication.airlock-2fa.offline-qr-code.challenge")
public final class Airlock2FAOfflineQrCodeChallengeData {
   public static final String AIRLOCK_2FA_OFFLINE_QR_CODE_CHALLENGE_TYPE = "authentication.airlock-2fa.offline-qr-code.challenge";
   @NotNull
   @Schema(description = "Base64-encoded PNG image of a QR code.")
   private String challengeImage;

   @SuppressFBWarnings(justification = "generated code")
   public String getChallengeImage() {
      return this.challengeImage;
   }

   @SuppressFBWarnings(justification = "generated code")
   public void setChallengeImage(String challengeImage) {
      this.challengeImage = challengeImage;
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof Airlock2FAOfflineQrCodeChallengeData other)) {
         return false;
      } else {
         Object this$challengeImage = this.challengeImage;
         Object other$challengeImage = other.challengeImage;
         return this$challengeImage == null ? other$challengeImage == null : this$challengeImage.equals(other$challengeImage);
      }
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public int hashCode() {
      int PRIME = 59;
      int result = 1;
      Object $challengeImage = this.challengeImage;
      return result * 59 + ($challengeImage == null ? 43 : $challengeImage.hashCode());
   }

   @SuppressFBWarnings(justification = "generated code")
   @Override
   public String toString() {
      return "Airlock2FAOfflineQrCodeChallengeData(challengeImage=" + this.getChallengeImage() + ")";
   }
}
