Package dropbox.gson

Examples of dropbox.gson.DbxMetadata


            .create();

        try {
            HttpResponse resp = get(ws);
            if (resp.success()) {
                DbxMetadata ret = new Gson().fromJson(resp.getJson(), DbxMetadata.class);
                if (ret.isDeleted()) {
                    return null;
                }
                return ret;
            }
View Full Code Here


    }

    @Override
    public Set<String> listDir(String path, ApiClient.ListingType listingType) throws InvalidTokenException, NotADirectoryException {
        Set<String> files = Sets.newHashSet();
        DbxMetadata metadata = getMetadata(path);

        if (metadata != null) {
            if (!metadata.isDir) {
                throw new NotADirectoryException("Expecting dir, got a file: " + path);
            }
View Full Code Here

TOP

Related Classes of dropbox.gson.DbxMetadata

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.