A Readme file representing how a facade pattern can be used
import some-thirdparty-library.*;
class Upload {
String uploadMyFile(String apiKey, MultipartFile file){
// We meed to first authenticate
Auth authenticatedUser = validateUser(apiKey);
// Check for if user is authenticated now
ProcessedFile processedFile = processFile(file);
//We get a processed file
UploadedObject uploadedFile = uploadFile(proccessedFile);
// Check for successful upload and if successfull, get the metadata
// Assume the upload was successful
FileMetadata fileMetadata = getFileMetadata(uploadedFile.getMetadata());
return fileMetadata.getMessage();
}
}