Files
2026-11-21 17:07:18 -05:00

66 lines
1.5 KiB
Java

/* */ package kong.unirest.cosmetics;
/* */
/* */ import java.util.Optional;
/* */ import java.util.function.Consumer;
/* */ import java.util.function.Function;
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */ public class BasicResponse<T>
/* */ extends BaseResponse<T>
/* */ {
/* */ private final T body;
/* */
/* */ BasicResponse(BaseResponse response, T body) {
/* 32 */ super(response);
/* 33 */ this.body = body;
/* */ }
/* */
/* */ public BasicResponse(RawResponse httpResponse, T body) {
/* 37 */ super(httpResponse);
/* 38 */ this.body = body;
/* */ }
/* */
/* */ public BasicResponse(RawResponse httpResponse) {
/* 42 */ super(httpResponse);
/* 43 */ this.body = null;
/* */ }
/* */
/* */ public BasicResponse(RawResponse httpResponse, String ogBody, RuntimeException ex) {
/* 47 */ this(httpResponse, (T)null);
/* 48 */ setParsingException(ogBody, ex);
/* */ }
/* */
/* */
/* */ public T getBody() {
/* 53 */ return this.body;
/* */ }
/* */
/* */
/* */ protected String getRawBody() {
/* 58 */ return null;
/* */ }
/* */ }
/* Location: C:\Users\Xiao\Downloads\MinehutCosmetics.jar!\kon\\unirest\cosmetics\BasicResponse.class
* Java compiler version: 11 (55.0)
* JD-Core Version: 1.1.3
*/