ru.cwcode.tkach.httpWrapper.BaseResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of HttpWrapper Show documentation
Show all versions of HttpWrapper Show documentation
Library for wrapping http services
The newest version!
package ru.cwcode.tkach.httpWrapper;
import lombok.AccessLevel;
import lombok.Getter;
import java.util.Map;
public class BaseResponse> {
protected final R r = (R) this;
@Getter
boolean success;
@Getter
int code;
@Getter(AccessLevel.PROTECTED)
Map response;
@Getter
BaseRequest, ?> request;
public BaseResponse(boolean success, int code, BaseRequest, ?> request, Map response) {
this.success = success;
this.code = code;
this.request = request;
this.response = response;
}
}