Package io.getstream.client
Class User
- java.lang.Object
-
- io.getstream.client.User
-
public final class User extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java8.util.concurrent.CompletableFuture<Data>
create()
java8.util.concurrent.CompletableFuture<Data>
create(Data data)
java8.util.concurrent.CompletableFuture<java.lang.Void>
delete()
java8.util.concurrent.CompletableFuture<Data>
get()
java.lang.String
getID()
java8.util.concurrent.CompletableFuture<Data>
getOrCreate()
java8.util.concurrent.CompletableFuture<Data>
getOrCreate(Data data)
java8.util.concurrent.CompletableFuture<ProfileData>
profile()
java8.util.concurrent.CompletableFuture<Data>
update(Data data)
-
-
-
Constructor Detail
-
User
public User(Client client, java.lang.String id)
-
-
Method Detail
-
getID
public java.lang.String getID()
-
get
public java8.util.concurrent.CompletableFuture<Data> get() throws StreamException
- Throws:
StreamException
-
delete
public java8.util.concurrent.CompletableFuture<java.lang.Void> delete() throws StreamException
- Throws:
StreamException
-
getOrCreate
public java8.util.concurrent.CompletableFuture<Data> getOrCreate() throws StreamException
- Throws:
StreamException
-
getOrCreate
public java8.util.concurrent.CompletableFuture<Data> getOrCreate(Data data) throws StreamException
- Throws:
StreamException
-
create
public java8.util.concurrent.CompletableFuture<Data> create() throws StreamException
- Throws:
StreamException
-
create
public java8.util.concurrent.CompletableFuture<Data> create(Data data) throws StreamException
- Throws:
StreamException
-
update
public java8.util.concurrent.CompletableFuture<Data> update(Data data) throws StreamException
- Throws:
StreamException
-
profile
public java8.util.concurrent.CompletableFuture<ProfileData> profile() throws StreamException
- Throws:
StreamException
-
-