Package 

Class ChannelData

  • All Implemented Interfaces:

    
    public final class ChannelData
    
                        

    A class that only stores the channel data and not the channel state that changes a lot (for example messages, watchers, etc.).

    • Constructor Detail

      • ChannelData

        ChannelData(String channelId, String type, String cid, String name, String image, User createdBy, Integer cooldown, Boolean frozen, Date createdAt, Date updatedAt, Date deletedAt, Integer memberCount, String team, Map<String, Object> extraData, Set<String> ownCapabilities, Member membership)
        Parameters:
        channelId - Channel's unique ID.
        type - Type of the channel.
        cid - The channel id in the format messaging:123.
        name - Channel's name.
        image - Channel's image.
        createdBy - Creator of the channel.
        cooldown - Cooldown period after sending each message in seconds.
        frozen - Whether channel is frozen or not.
        createdAt - Date/time of creation.
        updatedAt - Date/time of the last update.
        deletedAt - Date/time of deletion.
        memberCount - Number of members in the channel.
        team - Team the channel belongs to (multi-tenant only).
        extraData - A map of custom fields for the channel.
        ownCapabilities - Channel's capabilities available for the current user.
        membership - Represents relationship of the current user to the channel.