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

com.geotab.http.response.StringResponse Maven / Gradle / Ivy

/*
 *
 * 2020 Copyright (C) Geotab Inc. All rights reserved.
 */

package com.geotab.http.response;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.geotab.model.Id;
import com.geotab.model.error.JsonRpcError;
import com.geotab.model.serialization.StringResponseDeserializer;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

/**
 * Use this response type if you need the json object response "result" as string.
 */
@NoArgsConstructor
@Getter
@Setter
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@JsonDeserialize(using = StringResponseDeserializer.class)
public class StringResponse extends BaseResponse {

  @Builder
  public StringResponse(String result, JsonRpcError error, String jsonrpc, Id id,
      Integer requestIndex) {
    super(result, error, jsonrpc, id, requestIndex);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy