Skip to content

Commit 6e35016

Browse files
author
Max Klyga
committed
Add create method w/o arguments
1 parent 6645fce commit 6e35016

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main/java/io/getstream/cloud/CloudUser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,10 @@ public CompletableFuture<Data> create(Data data) throws StreamException {
7878
});
7979
}
8080

81+
public CompletableFuture<Data> create() throws StreamException {
82+
return create(new Data());
83+
}
84+
8185
public CompletableFuture<Data> update(Data data) throws StreamException {
8286
return client.updateUser(id, data)
8387
.thenApply(response -> {

0 commit comments

Comments
 (0)