-
public final class ChannelDataA class that only stores the channel data and not all the other channel state Using this prevents code bugs and issues caused by confusing the channel data vs the full channel object
-
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Usercomponent4()final Integercomponent5()final Booleancomponent6()final Datecomponent7()final Datecomponent8()final Datecomponent9()final Map<String, Object>component10()final ChannelDatacopy(String type, String channelId, String cid, User createdBy, Integer cooldown, Boolean frozen, Date createdAt, Date updatedAt, Date deletedAt, Map<String, Object> extraData)final StringgetType()final StringgetChannelId()final StringgetCid()final UsergetCreatedBy()created by user final IntegergetCooldown()final BooleangetFrozen()if the channel is frozen or not (new messages wont be allowed) final DategetCreatedAt()when the channel was created final DategetUpdatedAt()when the channel was updated final DategetDeletedAt()when the channel was deleted final Map<String, Object>getExtraData()all the custom data provided for this channel final UnitsetType(String type)final UnitsetChannelId(String channelId)final UnitsetCid(String cid)final UnitsetCreatedBy(User createdBy)created by user final UnitsetCooldown(Integer cooldown)final UnitsetFrozen(Boolean frozen)if the channel is frozen or not (new messages wont be allowed) final UnitsetCreatedAt(Date createdAt)when the channel was created final UnitsetUpdatedAt(Date updatedAt)when the channel was updated final UnitsetDeletedAt(Date deletedAt)when the channel was deleted final UnitsetExtraData(Map<String, Object> extraData)all the custom data provided for this channel -
-
Method Detail
-
component1
final String component1()
-
component2
final String component2()
-
component3
final String component3()
-
component4
final User component4()
-
component5
final Integer component5()
-
component6
final Boolean component6()
-
component7
final Date component7()
-
component8
final Date component8()
-
component9
final Date component9()
-
component10
final Map<String, Object> component10()
-
copy
final ChannelData copy(String type, String channelId, String cid, User createdBy, Integer cooldown, Boolean frozen, Date createdAt, Date updatedAt, Date deletedAt, Map<String, Object> extraData)
-
getChannelId
final String getChannelId()
-
getCreatedBy
final User getCreatedBy()
created by user
-
getCooldown
final Integer getCooldown()
-
getCreatedAt
final Date getCreatedAt()
when the channel was created
-
getUpdatedAt
final Date getUpdatedAt()
when the channel was updated
-
getDeletedAt
final Date getDeletedAt()
when the channel was deleted
-
getExtraData
final Map<String, Object> getExtraData()
all the custom data provided for this channel
-
setChannelId
final Unit setChannelId(String channelId)
-
setCreatedBy
final Unit setCreatedBy(User createdBy)
created by user
-
setCooldown
final Unit setCooldown(Integer cooldown)
-
setFrozen
final Unit setFrozen(Boolean frozen)
if the channel is frozen or not (new messages wont be allowed)
-
setCreatedAt
final Unit setCreatedAt(Date createdAt)
when the channel was created
-
setUpdatedAt
final Unit setUpdatedAt(Date updatedAt)
when the channel was updated
-
setDeletedAt
final Unit setDeletedAt(Date deletedAt)
when the channel was deleted
-
setExtraData
final Unit setExtraData(Map<String, Object> extraData)
all the custom data provided for this channel
-
-
-
-