public class UserBlocksEntity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
apiToken |
protected okhttp3.HttpUrl |
baseUrl |
protected okhttp3.OkHttpClient |
client |
Modifier and Type | Method and Description |
---|---|
Request |
delete(java.lang.String userId)
Delete any existing User Blocks.
|
Request |
deleteByIdentifier(java.lang.String identifier)
Delete any existing User Blocks for a given identifier.
|
Request<UserBlocks> |
get(java.lang.String userId)
Request all the User Blocks.
|
Request<UserBlocks> |
getByIdentifier(java.lang.String identifier)
Request all the User Blocks for a given identifier.
|
protected final okhttp3.OkHttpClient client
protected final okhttp3.HttpUrl baseUrl
protected final java.lang.String apiToken
public Request<UserBlocks> getByIdentifier(java.lang.String identifier)
identifier
- the identifier. Either a username, phone_number, or email.public Request deleteByIdentifier(java.lang.String identifier)
identifier
- the identifier. Either a username, phone_number, or email.public Request<UserBlocks> get(java.lang.String userId)
userId
- the user id.public Request delete(java.lang.String userId)
userId
- the user id.