Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ChannelService

Index

Constructors

constructor

Properties

base

base: Base

Methods

createChannel

  • createChannel(team: string, name: string, description?: string, color?: string, is_private?: boolean): Promise<Channel>
  • Create Channel.

    Parameters

    • team: string
    • name: string
    • Optional description: string
    • Optional color: string
    • Default value is_private: boolean = false

    Returns Promise<Channel>

deleteChannel

  • deleteChannel(team: string, slug: string): Promise<boolean>

getAllChannels

getChannel

  • getChannel(team: string, slug: string): Promise<Channel>

updateChannel

  • updateChannel(team: string, slug: string, name?: string, description?: string, color?: string, is_private?: boolean): Promise<Channel>
  • Update Channel.

    Parameters

    • team: string
    • slug: string
    • Optional name: string
    • Optional description: string
    • Optional color: string
    • Default value is_private: boolean = false

    Returns Promise<Channel>

uploadMedia

  • uploadMedia(team: string, slug: string, files: File[]): Promise<Media[]>

Static makeChannel

Static makeChannelFromResponse

  • makeChannelFromResponse(response: any): Channel

Static makeCollectionFromResponse