-
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
-
-
Field Summary
Fields Modifier and Type Field Description private Stringtypeprivate StringchannelIdprivate Stringcidprivate UsercreatedByprivate Integercooldownprivate Booleanfrozenprivate DatecreatedAtprivate DateupdatedAtprivate DatedeletedAtprivate IntegermemberCountprivate Map<String, Object>extraData
-
Constructor Summary
Constructors Constructor Description ChannelData(Channel c)create a ChannelData object from a Channel object ChannelData(String type, String channelId, String cid, User createdBy, Integer cooldown, Boolean frozen, Date createdAt, Date updatedAt, Date deletedAt, Integer memberCount, Map<String, Object> extraData)
-
Method Summary
Modifier and Type Method Description final StringgetType()final UnitsetType(String type)final StringgetChannelId()final UnitsetChannelId(String channelId)final StringgetCid()final UnitsetCid(String cid)final UsergetCreatedBy()created by user final UnitsetCreatedBy(User createdBy)created by user final IntegergetCooldown()final UnitsetCooldown(Integer cooldown)final BooleangetFrozen()if the channel is frozen or not (new messages wont be allowed) final UnitsetFrozen(Boolean frozen)if the channel is frozen or not (new messages wont be allowed) final DategetCreatedAt()when the channel was created final UnitsetCreatedAt(Date createdAt)when the channel was created final DategetUpdatedAt()when the channel was updated final UnitsetUpdatedAt(Date updatedAt)when the channel was updated final DategetDeletedAt()when the channel was deleted final UnitsetDeletedAt(Date deletedAt)when the channel was deleted final IntegergetMemberCount()channel member count final UnitsetMemberCount(Integer memberCount)channel member count final Map<String, Object>getExtraData()all the custom data provided for this channel final UnitsetExtraData(Map<String, Object> extraData)all the custom data provided for this channel final Stringcomponent1()final Stringcomponent2()final Stringcomponent3()final Usercomponent4()final Integercomponent5()final Booleancomponent6()final Datecomponent7()final Datecomponent8()final Datecomponent9()final Integercomponent10()final Map<String, Object>component11()final ChannelDatacopy(String type, String channelId, String cid, User createdBy, Integer cooldown, Boolean frozen, Date createdAt, Date updatedAt, Date deletedAt, Integer memberCount, Map<String, Object> extraData)-
-
Method Detail
-
getChannelId
final String getChannelId()
-
setChannelId
final Unit setChannelId(String channelId)
-
getCreatedBy
final User getCreatedBy()
created by user
-
setCreatedBy
final Unit setCreatedBy(User createdBy)
created by user
-
getCooldown
final Integer getCooldown()
-
setCooldown
final Unit setCooldown(Integer cooldown)
-
setFrozen
final Unit setFrozen(Boolean frozen)
if the channel is frozen or not (new messages wont be allowed)
-
getCreatedAt
final Date getCreatedAt()
when the channel was created
-
setCreatedAt
final Unit setCreatedAt(Date createdAt)
when the channel was created
-
getUpdatedAt
final Date getUpdatedAt()
when the channel was updated
-
setUpdatedAt
final Unit setUpdatedAt(Date updatedAt)
when the channel was updated
-
getDeletedAt
final Date getDeletedAt()
when the channel was deleted
-
setDeletedAt
final Unit setDeletedAt(Date deletedAt)
when the channel was deleted
-
getMemberCount
final Integer getMemberCount()
channel member count
-
setMemberCount
final Unit setMemberCount(Integer memberCount)
channel member count
-
getExtraData
final Map<String, Object> getExtraData()
all the custom data provided for this channel
-
setExtraData
final Unit setExtraData(Map<String, Object> extraData)
all the custom data provided for this channel
-
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 Integer component10()
-
component11
final Map<String, Object> component11()
-
-
-
-