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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Space.CustomTypeAdapterFactory
static class
Space.StateEnum
The current state of the Space.
-
Field Summary
Fields Modifier and Type Field Description static HashSet<String>
openapiFields
static HashSet<String>
openapiRequiredFields
static String
SERIALIZED_NAME_CREATED_AT
static String
SERIALIZED_NAME_CREATOR_ID
static String
SERIALIZED_NAME_ENDED_AT
static String
SERIALIZED_NAME_HOST_IDS
static String
SERIALIZED_NAME_ID
static String
SERIALIZED_NAME_INVITED_USER_IDS
static String
SERIALIZED_NAME_IS_TICKETED
static String
SERIALIZED_NAME_LANG
static String
SERIALIZED_NAME_PARTICIPANT_COUNT
static String
SERIALIZED_NAME_SCHEDULED_START
static String
SERIALIZED_NAME_SPEAKER_IDS
static String
SERIALIZED_NAME_STARTED_AT
static String
SERIALIZED_NAME_STATE
static String
SERIALIZED_NAME_SUBSCRIBER_COUNT
static String
SERIALIZED_NAME_TITLE
static String
SERIALIZED_NAME_TOPICS
static String
SERIALIZED_NAME_UPDATED_AT
-
Constructor Summary
Constructors Constructor Description Space()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Space
addHostIdsItem(String hostIdsItem)
Space
addInvitedUserIdsItem(String invitedUserIdsItem)
Space
addSpeakerIdsItem(String speakerIdsItem)
Space
addTopicsItem(SpaceTopics topicsItem)
Space
createdAt(OffsetDateTime createdAt)
Space
creatorId(String creatorId)
Space
endedAt(OffsetDateTime endedAt)
boolean
equals(Object o)
static Space
fromJson(String jsonString)
Create an instance of Space given an JSON stringOffsetDateTime
getCreatedAt()
Creation time of the Space.String
getCreatorId()
Unique identifier of this User.OffsetDateTime
getEndedAt()
End time of the Space.List<String>
getHostIds()
The user ids for the hosts of the Space.String
getId()
The unique identifier of this Space.List<String>
getInvitedUserIds()
An array of user ids for people who were invited to a Space.Boolean
getIsTicketed()
Denotes if the Space is a ticketed Space.String
getLang()
The language of the Space.Integer
getParticipantCount()
The number of participants in a Space.OffsetDateTime
getScheduledStart()
A date time stamp for when a Space is scheduled to begin.List<String>
getSpeakerIds()
An array of user ids for people who were speakers in a Space.OffsetDateTime
getStartedAt()
When the Space was started as a date string.Space.StateEnum
getState()
The current state of the Space.Integer
getSubscriberCount()
The number of people who have either purchased a ticket or set a reminder for this Space.String
getTitle()
The title of the Space.List<SpaceTopics>
getTopics()
The topics of a Space, as selected by its creator.OffsetDateTime
getUpdatedAt()
When the Space was last updated.int
hashCode()
Space
hostIds(List<String> hostIds)
Space
id(String id)
Space
invitedUserIds(List<String> invitedUserIds)
Space
isTicketed(Boolean isTicketed)
Space
lang(String lang)
Space
participantCount(Integer participantCount)
Space
scheduledStart(OffsetDateTime scheduledStart)
void
setCreatedAt(OffsetDateTime createdAt)
void
setCreatorId(String creatorId)
void
setEndedAt(OffsetDateTime endedAt)
void
setHostIds(List<String> hostIds)
void
setId(String id)
void
setInvitedUserIds(List<String> invitedUserIds)
void
setIsTicketed(Boolean isTicketed)
void
setLang(String lang)
void
setParticipantCount(Integer participantCount)
void
setScheduledStart(OffsetDateTime scheduledStart)
void
setSpeakerIds(List<String> speakerIds)
void
setStartedAt(OffsetDateTime startedAt)
void
setState(Space.StateEnum state)
void
setSubscriberCount(Integer subscriberCount)
void
setTitle(String title)
void
setTopics(List<SpaceTopics> topics)
void
setUpdatedAt(OffsetDateTime updatedAt)
Space
speakerIds(List<String> speakerIds)
Space
startedAt(OffsetDateTime startedAt)
Space
state(Space.StateEnum state)
Space
subscriberCount(Integer subscriberCount)
Space
title(String title)
String
toJson()
Convert an instance of Space to an JSON stringSpace
topics(List<SpaceTopics> topics)
String
toString()
Space
updatedAt(OffsetDateTime updatedAt)
static void
validateJsonObject(com.google.gson.JsonObject jsonObj)
Validates the JSON Object and throws an exception if issues found
-
-
-
Field Detail
-
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_ENDED_AT
public static final String SERIALIZED_NAME_ENDED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_HOST_IDS
public static final String SERIALIZED_NAME_HOST_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ID
public static final String SERIALIZED_NAME_ID
- 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_IS_TICKETED
public static final String SERIALIZED_NAME_IS_TICKETED
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_LANG
public static final String SERIALIZED_NAME_LANG
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_PARTICIPANT_COUNT
public static final String SERIALIZED_NAME_PARTICIPANT_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SCHEDULED_START
public static final String SERIALIZED_NAME_SCHEDULED_START
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SPEAKER_IDS
public static final String SERIALIZED_NAME_SPEAKER_IDS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STARTED_AT
public static final String SERIALIZED_NAME_STARTED_AT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_STATE
public static final String SERIALIZED_NAME_STATE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_SUBSCRIBER_COUNT
public static final String SERIALIZED_NAME_SUBSCRIBER_COUNT
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TITLE
public static final String SERIALIZED_NAME_TITLE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_TOPICS
public static final String SERIALIZED_NAME_TOPICS
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_UPDATED_AT
public static final String SERIALIZED_NAME_UPDATED_AT
- See Also:
- Constant Field Values
-
-
Method Detail
-
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)
-
endedAt
public Space endedAt(OffsetDateTime endedAt)
-
getEndedAt
@Nullable public OffsetDateTime getEndedAt()
End time of the Space.- Returns:
- endedAt
-
setEndedAt
public void setEndedAt(OffsetDateTime endedAt)
-
getHostIds
@Nullable public List<String> getHostIds()
The user ids for the hosts of the Space.- Returns:
- hostIds
-
setId
public void setId(String id)
-
getInvitedUserIds
@Nullable public List<String> getInvitedUserIds()
An array of user ids for people who were invited to a Space.- Returns:
- invitedUserIds
-
getIsTicketed
@Nullable public Boolean getIsTicketed()
Denotes if the Space is a ticketed Space.- Returns:
- isTicketed
-
setIsTicketed
public void setIsTicketed(Boolean isTicketed)
-
setLang
public void setLang(String lang)
-
getParticipantCount
@Nullable public Integer getParticipantCount()
The number of participants in a Space.- Returns:
- participantCount
-
setParticipantCount
public void setParticipantCount(Integer participantCount)
-
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)
-
getSpeakerIds
@Nullable public List<String> getSpeakerIds()
An array of user ids for people who were speakers in a Space.- Returns:
- speakerIds
-
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)
-
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)
-
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)
-
setTitle
public void setTitle(String title)
-
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)
-
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)
-
validateJsonObject
public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
Validates 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
-
-