All Downloads are FREE. Search and download functionalities are using the official Maven repository.

syncloud.google.docs.model.DocsContent Maven / Gradle / Ivy

The newest version!
package syncloud.google.docs.model;

import com.google.api.client.http.xml.atom.AtomContent;
public class DocsContent {
    public static AtomContent createFolderContent(String title) {
        return createContent(title, Category.folder());
    }

    public static AtomContent createFileContent(String title) {
        return createContent(title, Category.file());
    }

    private static AtomContent createContent(String title, Category category) {
        Entry entry = new Entry();
        entry.setKind(category);
        entry.setTitle(title);
        AtomContent content = AtomContent.forEntry(Namespace.DICTIONARY, entry);
        return content;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy