public final class CBUser
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static CBUser |
currentUser()
Get current user instance.
|
java.lang.String |
getEmail()
Gets email.
|
java.lang.String |
getName()
Gets name.
|
void |
sendDataInBackground()
Send data in background.
|
void |
sendDataInBackground(RequestCallback callback)
Send data in background with callback method.
|
CBUser |
setEmail(java.lang.String email)
Sets email.
|
CBUser |
setName(java.lang.String name)
Sets name.
|
static void |
setUserData(java.lang.String name,
java.lang.String email)
Deprecated.
Use
setName(String) or setEmail(String) instead! |
public static CBUser currentUser()
@Deprecated public static void setUserData(java.lang.String name, java.lang.String email)
setName(String)
or setEmail(String)
instead!name
- string of nameemail
- string of emailpublic java.lang.String getName()
public CBUser setName(java.lang.String name)
name
- the namepublic java.lang.String getEmail()
public CBUser setEmail(java.lang.String email)
email
- the emailpublic void sendDataInBackground()
public void sendDataInBackground(RequestCallback callback)
callback
- the {code RequestCallback} method