Class ViberFileRequest.Builder

Enclosing class:
ViberFileRequest

  • Method Details

    • url

      (REQUIRED) The URL for the file attachment or the path for the location of the file attachment. If name is included, can just be the path. If name is not included, must include the filename and extension.

      Supported file types are .doc, .docx, .rtf, .dot, .dotx, .odt, .odf, .fodt, .txt, .info, .pdf, .xps, .pdax, .eps, .xls, .xlsx, .ods, .fods, .csv, .xlsm, .xltx. Maximum file size is 200MB.

      Parameters:
      url - The file URL as a string.
      Returns:
      This builder.
    • name

      (OPTIONAL) The name and extension of the file.
      Parameters:
      name - The filename and extension as a string.
      Returns:
      This builder.
    • build

      Description copied from class: MessageRequest.Builder
      Builds the MessageRequest.
      Specified by:
      build in class MessageRequest.Builder<ViberFileRequest,ViberFileRequest.Builder>
      Returns:
      A MessageRequest, populated with all fields from this builder.