Class PaperCreateResult


  • public class PaperCreateResult
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String fileId  
      protected long paperRevision  
      protected java.lang.String resultPath  
      protected java.lang.String url  
    • Constructor Summary

      Constructors 
      Constructor Description
      PaperCreateResult​(java.lang.String url, java.lang.String resultPath, java.lang.String fileId, long paperRevision)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getFileId()
      The id to use in Dropbox APIs when referencing the Paper Doc.
      long getPaperRevision()
      The current doc revision.
      java.lang.String getResultPath()
      The fully qualified path the Paper Doc was actually created at.
      java.lang.String getUrl()
      URL to open the Paper Doc.
      int hashCode()  
      java.lang.String toString()  
      java.lang.String toStringMultiline()
      Returns a String representation of this object formatted for easier readability.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • url

        protected final java.lang.String url
      • resultPath

        protected final java.lang.String resultPath
      • fileId

        protected final java.lang.String fileId
      • paperRevision

        protected final long paperRevision
    • Constructor Detail

      • PaperCreateResult

        public PaperCreateResult​(java.lang.String url,
                                 java.lang.String resultPath,
                                 java.lang.String fileId,
                                 long paperRevision)
        Parameters:
        url - URL to open the Paper Doc. Must not be null.
        resultPath - The fully qualified path the Paper Doc was actually created at. Must not be null.
        fileId - The id to use in Dropbox APIs when referencing the Paper Doc. Must have length of at least 4, match pattern "id:.+", and not be null.
        paperRevision - The current doc revision.
        Throws:
        java.lang.IllegalArgumentException - If any argument does not meet its preconditions.
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        URL to open the Paper Doc.
        Returns:
        value for this field, never null.
      • getResultPath

        public java.lang.String getResultPath()
        The fully qualified path the Paper Doc was actually created at.
        Returns:
        value for this field, never null.
      • getFileId

        public java.lang.String getFileId()
        The id to use in Dropbox APIs when referencing the Paper Doc.
        Returns:
        value for this field, never null.
      • getPaperRevision

        public long getPaperRevision()
        The current doc revision.
        Returns:
        value for this field.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toStringMultiline

        public java.lang.String toStringMultiline()
        Returns a String representation of this object formatted for easier readability.

        The returned String may contain newlines.

        Returns:
        Formatted, multiline String representation of this object