All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.applitools.eyes.universal.dto.ResponsePayload Maven / Gradle / Ivy

There is a newer version: 5.76.0
Show newest version
package com.applitools.eyes.universal.dto;


/**
 * response payload
 */
public class ResponsePayload {

  private T result;
  private ErrorDto error;

  public ResponsePayload() {
  }

  public ResponsePayload(T result) {
    this.result = result;
  }

  public ResponsePayload(T result, ErrorDto error) {
    this.result = result;
    this.error = error;
  }

  public T getResult() {
    return result;
  }

  public void setResult(T result) {
    this.result = result;
  }

  public ErrorDto getError() {
    return error;
  }

  public void setError(ErrorDto error) {
    this.error = error;
  }

  @Override
  public String toString() {
    return "ResponsePayload{" +
        "result=" + result +
        ", error=" + error +
        '}';
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy