Package com.twitter.clientlib.model
Class Space
- java.lang.Object
-
- com.twitter.clientlib.model.Space
-
@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class Space extends Object
Space
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSpace.CustomTypeAdapterFactorystatic classSpace.StateEnumThe current state of the space.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>openapiFieldsstatic HashSet<String>openapiRequiredFieldsstatic StringSERIALIZED_NAME_CREATED_ATstatic StringSERIALIZED_NAME_CREATOR_IDstatic StringSERIALIZED_NAME_ENDED_ATstatic StringSERIALIZED_NAME_HOST_IDSstatic StringSERIALIZED_NAME_IDstatic StringSERIALIZED_NAME_INVITED_USER_IDSstatic StringSERIALIZED_NAME_IS_TICKETEDstatic StringSERIALIZED_NAME_LANGstatic StringSERIALIZED_NAME_PARTICIPANT_COUNTstatic StringSERIALIZED_NAME_SCHEDULED_STARTstatic StringSERIALIZED_NAME_SPEAKER_IDSstatic StringSERIALIZED_NAME_STARTED_ATstatic StringSERIALIZED_NAME_STATEstatic StringSERIALIZED_NAME_SUBSCRIBER_COUNTstatic StringSERIALIZED_NAME_TITLEstatic StringSERIALIZED_NAME_TOPICSstatic StringSERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Space()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpaceaddHostIdsItem(String hostIdsItem)SpaceaddInvitedUserIdsItem(String invitedUserIdsItem)SpaceaddSpeakerIdsItem(String speakerIdsItem)SpaceaddTopicsItem(SpaceTopics topicsItem)SpacecreatedAt(OffsetDateTime createdAt)SpacecreatorId(String creatorId)SpaceendedAt(OffsetDateTime endedAt)booleanequals(Object o)static SpacefromJson(String jsonString)Create an instance of Space given an JSON stringOffsetDateTimegetCreatedAt()Creation time of the spaceStringgetCreatorId()Unique identifier of this User.OffsetDateTimegetEndedAt()End time of the spaceList<String>getHostIds()The user ids for the hosts of the spaceStringgetId()The unique identifier of this Space.List<String>getInvitedUserIds()An array of user ids for people who were invited to a spaceBooleangetIsTicketed()Denotes if the space is a ticketed spaceStringgetLang()The language of the spaceIntegergetParticipantCount()The number of participants in a spaceOffsetDateTimegetScheduledStart()A date time stamp for when a space is scheduled to beginList<String>getSpeakerIds()An array of user ids for people who were speakers in a spaceOffsetDateTimegetStartedAt()When the space was started as a date stringSpace.StateEnumgetState()The current state of the space.IntegergetSubscriberCount()The number of people who have either purchased a ticket or set a reminder for this space.StringgetTitle()The title of the spaceList<SpaceTopics>getTopics()The topics of a space, as selected by its creatorOffsetDateTimegetUpdatedAt()When the space was last updatedinthashCode()SpacehostIds(List<String> hostIds)Spaceid(String id)SpaceinvitedUserIds(List<String> invitedUserIds)SpaceisTicketed(Boolean isTicketed)Spacelang(String lang)SpaceparticipantCount(Integer participantCount)SpacescheduledStart(OffsetDateTime scheduledStart)voidsetCreatedAt(OffsetDateTime createdAt)voidsetCreatorId(String creatorId)voidsetEndedAt(OffsetDateTime endedAt)voidsetHostIds(List<String> hostIds)voidsetId(String id)voidsetInvitedUserIds(List<String> invitedUserIds)voidsetIsTicketed(Boolean isTicketed)voidsetLang(String lang)voidsetParticipantCount(Integer participantCount)voidsetScheduledStart(OffsetDateTime scheduledStart)voidsetSpeakerIds(List<String> speakerIds)voidsetStartedAt(OffsetDateTime startedAt)voidsetState(Space.StateEnum state)voidsetSubscriberCount(Integer subscriberCount)voidsetTitle(String title)voidsetTopics(List<SpaceTopics> topics)voidsetUpdatedAt(OffsetDateTime updatedAt)SpacespeakerIds(List<String> speakerIds)SpacestartedAt(OffsetDateTime startedAt)Spacestate(Space.StateEnum state)SpacesubscriberCount(Integer subscriberCount)Spacetitle(String title)StringtoJson()Convert an instance of Space to an JSON stringSpacetopics(List<SpaceTopics> topics)StringtoString()SpaceupdatedAt(OffsetDateTime updatedAt)static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj)Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT
public static final String SERIALIZED_NAME_STARTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_IS_TICKETED
public static final String SERIALIZED_NAME_IS_TICKETED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARTICIPANT_COUNT
public static final String SERIALIZED_NAME_PARTICIPANT_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOST_IDS
public static final String SERIALIZED_NAME_HOST_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATED_AT
public static final String SERIALIZED_NAME_CREATED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_CREATOR_ID
public static final String SERIALIZED_NAME_CREATOR_ID
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANG
public static final String SERIALIZED_NAME_LANG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPEAKER_IDS
public static final String SERIALIZED_NAME_SPEAKER_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_INVITED_USER_IDS
public static final String SERIALIZED_NAME_INVITED_USER_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCHEDULED_START
public static final String SERIALIZED_NAME_SCHEDULED_START
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ENDED_AT
public static final String SERIALIZED_NAME_ENDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPICS
public static final String SERIALIZED_NAME_TOPICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIBER_COUNT
public static final String SERIALIZED_NAME_SUBSCRIBER_COUNT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setId
public void setId(String id)
-
state
public Space state(Space.StateEnum state)
-
getState
@Nonnull public Space.StateEnum getState()
The current state of the space.- Returns:
- state
-
setState
public void setState(Space.StateEnum state)
-
startedAt
public Space startedAt(OffsetDateTime startedAt)
-
getStartedAt
@Nullable public OffsetDateTime getStartedAt()
When the space was started as a date string- Returns:
- startedAt
-
setStartedAt
public void setStartedAt(OffsetDateTime startedAt)
-
getIsTicketed
@Nullable public Boolean getIsTicketed()
Denotes if the space is a ticketed space- Returns:
- isTicketed
-
setIsTicketed
public void setIsTicketed(Boolean isTicketed)
-
getParticipantCount
@Nullable public Integer getParticipantCount()
The number of participants in a space- Returns:
- participantCount
-
setParticipantCount
public void setParticipantCount(Integer participantCount)
-
setTitle
public void setTitle(String title)
-
getHostIds
@Nullable public List<String> getHostIds()
The user ids for the hosts of the space- Returns:
- hostIds
-
updatedAt
public Space updatedAt(OffsetDateTime updatedAt)
-
getUpdatedAt
@Nullable public OffsetDateTime getUpdatedAt()
When the space was last updated- Returns:
- updatedAt
-
setUpdatedAt
public void setUpdatedAt(OffsetDateTime updatedAt)
-
createdAt
public Space createdAt(OffsetDateTime createdAt)
-
getCreatedAt
@Nullable public OffsetDateTime getCreatedAt()
Creation time of the space- Returns:
- createdAt
-
setCreatedAt
public void setCreatedAt(OffsetDateTime createdAt)
-
getCreatorId
@Nullable public String getCreatorId()
Unique identifier of this User. This is returned as a string in order to avoid complications with languages and tools that cannot handle large integers.- Returns:
- creatorId
-
setCreatorId
public void setCreatorId(String creatorId)
-
setLang
public void setLang(String lang)
-
getSpeakerIds
@Nullable public List<String> getSpeakerIds()
An array of user ids for people who were speakers in a space- Returns:
- speakerIds
-
getInvitedUserIds
@Nullable public List<String> getInvitedUserIds()
An array of user ids for people who were invited to a space- Returns:
- invitedUserIds
-
scheduledStart
public Space scheduledStart(OffsetDateTime scheduledStart)
-
getScheduledStart
@Nullable public OffsetDateTime getScheduledStart()
A date time stamp for when a space is scheduled to begin- Returns:
- scheduledStart
-
setScheduledStart
public void setScheduledStart(OffsetDateTime scheduledStart)
-
endedAt
public Space endedAt(OffsetDateTime endedAt)
-
getEndedAt
@Nullable public OffsetDateTime getEndedAt()
End time of the space- Returns:
- endedAt
-
setEndedAt
public void setEndedAt(OffsetDateTime endedAt)
-
topics
public Space topics(List<SpaceTopics> topics)
-
addTopicsItem
public Space addTopicsItem(SpaceTopics topicsItem)
-
getTopics
@Nullable public List<SpaceTopics> getTopics()
The topics of a space, as selected by its creator- Returns:
- topics
-
setTopics
public void setTopics(List<SpaceTopics> topics)
-
getSubscriberCount
@Nullable public Integer getSubscriberCount()
The number of people who have either purchased a ticket or set a reminder for this space.- Returns:
- subscriberCount
-
setSubscriberCount
public void setSubscriberCount(Integer subscriberCount)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOExceptionValidates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to Space
-
fromJson
public static Space fromJson(String jsonString) throws IOException
Create an instance of Space given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Space
- Throws:
IOException- if the JSON string is invalid with respect to Space
-
toJson
public String toJson()
Convert an instance of Space to an JSON string- Returns:
- JSON string
-
-