public class Post extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHOR_BOT |
static int |
AUTHOR_USER |
static String |
CONTENT_TYPE_CARD |
static String |
CONTENT_TYPE_IMAGE |
static String |
CONTENT_TYPE_QUICK_REPLIES |
static String |
CONTENT_TYPE_TEXT |
| Constructor and Description |
|---|
Post()
Constructor
|
Post(String strContent)
Constructor
|
Post(String strContent,
int nAuthor)
Constructor
|
Post(String strContent,
String strContentType,
int nAuthor)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAuthor()
Returns the Author
|
String |
getAvatarUrl()
Returns the Avatar Url
|
String |
getContent()
Returns the Content
|
String |
getContentType()
Returns the ContentType
|
void |
setAuthor(int nAuthor)
Sets the Author
|
void |
setAvatarUrl(String strAvatarUrl)
Sets the AvatarUrl
|
void |
setContent(String strContent)
Sets the Content
|
void |
setContentType(String strContentType)
Sets the ContentType
|
public static final int AUTHOR_BOT
public static final int AUTHOR_USER
public static final String CONTENT_TYPE_TEXT
public static final String CONTENT_TYPE_IMAGE
public static final String CONTENT_TYPE_CARD
public static final String CONTENT_TYPE_QUICK_REPLIES
public Post()
public Post(String strContent)
strContent - The content
NB : Default content type is 'text'public Post(String strContent, int nAuthor)
strContent - The contentnAuthor - The author
NB : Default content type is 'text'public String getContent()
public void setContent(String strContent)
strContent - The Contentpublic String getContentType()
public void setContentType(String strContentType)
strContentType - The ContentTypepublic int getAuthor()
public void setAuthor(int nAuthor)
nAuthor - The Authorpublic String getAvatarUrl()
public void setAvatarUrl(String strAvatarUrl)
strAvatarUrl - The Avatar UrlCopyright © 2019 City of Paris. All rights reserved.