Package im.getsocial.sdk.communities
Class PollOptionContent
- java.lang.Object
-
- im.getsocial.sdk.communities.PollOptionContent
-
public class PollOptionContent extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PollOptionContent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaAttachment
getAttachment()
java.lang.String
getOptionId()
java.lang.String
getText()
PollOptionContent
withAttachment(MediaAttachment attachment)
Set attachment.PollOptionContent
withOptionId(java.lang.String optionId)
Set id of option.PollOptionContent
withText(java.lang.String text)
Set text of option.
-
-
-
Method Detail
-
withOptionId
public PollOptionContent withOptionId(java.lang.String optionId)
Set id of option. Will override the previous value if it was set.- Parameters:
optionId
- option id.- Returns:
- same instance for a method chaining.
-
withText
public PollOptionContent withText(java.lang.String text)
Set text of option. Will override the previous value if it was set.- Parameters:
text
- option text.- Returns:
- same instance for a method chaining.
-
withAttachment
public PollOptionContent withAttachment(MediaAttachment attachment)
Set attachment. Will override the previous value if it was set.- Parameters:
attachment
- media attachment.- Returns:
- same instance for a method chaining.
-
getAttachment
public MediaAttachment getAttachment()
- Returns:
- attachment.
-
getText
public java.lang.String getText()
- Returns:
- text.
-
getOptionId
public java.lang.String getOptionId()
- Returns:
- option id.
-
-