
public static class ApiResult<T> {
private private boolean success;
private private T response;
private private Throwable error;
public ApiResult(boolean success, T response, Throwable error) {
this.success = success;
this.response = response;
this.error = error;
}
}
참고 깃 허브 주소
코드 내 static: 객체 생성없이 사용 가능하도록 함.-> 단일책임원칙을 어기진 않음