Package io.getstream.chat.java.models
Class Import
java.lang.Object
io.getstream.chat.java.models.Import
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic enumstatic enumstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateImport(String path, Import.ImportMode mode) Creates a create import requestcreateImportUrl(String fileName) Creates a create import url requeststatic Import.GetImportRequestCreates a get import requeststatic Import.ListImportsRequestlistImports(Integer limit, Integer offset) Creates a list import request
-
Constructor Details
-
Import
public Import()
-
-
Method Details
-
createImportUrl
@NotNull public static Import.CreateImportUrlRequestData.CreateImportUrlRequest createImportUrl(@NotNull String fileName) Creates a create import url request- Parameters:
fileName- the name of the file to be imported- Returns:
- the created request
-
createImport
@NotNull public static Import.CreateImportRequestData.CreateImportRequest createImport(@NotNull String path, @Nullable Import.ImportMode mode) Creates a create import request- Parameters:
path- the path returned by createImportUrl endpointmode- the import mode- Returns:
- the created request
-
getImport
Creates a get import request- Parameters:
id- the id of the import- Returns:
- the created request
-
listImports
@NotNull public static Import.ListImportsRequest listImports(@Nullable Integer limit, @Nullable Integer offset) Creates a list import request- Parameters:
limit- how many records to returnoffset- how many records to skip during pagination- Returns:
- the created request
-