001/* 002 * #%L 003 * GwtMaterial 004 * %% 005 * Copyright (C) 2015 - 2017 GwtMaterialDesign 006 * %% 007 * Licensed under the Apache License, Version 2.0 (the "License"); 008 * you may not use this file except in compliance with the License. 009 * You may obtain a copy of the License at 010 * 011 * http://www.apache.org/licenses/LICENSE-2.0 012 * 013 * Unless required by applicable law or agreed to in writing, software 014 * distributed under the License is distributed on an "AS IS" BASIS, 015 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 016 * See the License for the specific language governing permissions and 017 * limitations under the License. 018 * #L% 019 */ 020package gwt.material.design.addins.client.fileuploader.base; 021 022/** 023 * Upload Response with Code (e.g 404, 503, 200) and message ("File Upload url not found etc." 024 * 025 * @author kevzlou7979 026 */ 027public class UploadResponse { 028 029 private String code; 030 private String message; 031 private String body; 032 033 public UploadResponse(String code, String message) { 034 this.code = code; 035 this.message = message; 036 } 037 038 public UploadResponse(String code, String message, String body) { 039 this.code = code; 040 this.message = message; 041 this.body = body; 042 } 043 044 public String getCode() { 045 return code; 046 } 047 048 public void setCode(String code) { 049 this.code = code; 050 } 051 052 public String getMessage() { 053 return message; 054 } 055 056 public void setMessage(String message) { 057 this.message = message; 058 } 059 060 public String getBody() { 061 return body; 062 } 063 064 public void setBody(String body) { 065 this.body = body; 066 } 067}