public class Profile
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
io.textile.pb.Model.Thread |
accountThread()
Get the Textile account thread
|
java.lang.String |
avatar()
Get the target of the profile avatar
|
io.textile.pb.Model.Peer |
get()
Get the Peer object associated with the local Textile peer
|
java.lang.String |
name()
Get the user name associated with the local Textile peer
|
void |
setAvatar(java.lang.String file,
Handlers.BlockHandler handler)
Set the avatar
|
void |
setName(java.lang.String name)
Set the user name
|
public io.textile.pb.Model.Peer get() throws java.lang.Exception
java.lang.Exception
- The exception that occurredpublic java.lang.String name() throws java.lang.Exception
java.lang.Exception
- The exception that occurredpublic void setName(java.lang.String name) throws java.lang.Exception
name
- The new user namejava.lang.Exception
- The exception that occurredpublic java.lang.String avatar() throws java.lang.Exception
java.lang.Exception
- The exception that occurredpublic void setAvatar(java.lang.String file, Handlers.BlockHandler handler)
file
- The image file to usehandler
- An object that will get called with the resulting blockpublic io.textile.pb.Model.Thread accountThread() throws java.lang.Exception
java.lang.Exception
- The exception that occurred