import { ChannelConnectedEvent } from "./ChannelConnectedEvent"; import { ChannelSettingsEvent } from "./ChannelSettingsEvent"; import { TenantSettingsEvent } from "./TenantSettingsEvent"; export class LineChannelConnectedEvent extends ChannelConnectedEvent { public static eventName = "conversations.LineChannelConnectedEvent"; public static eventVersion = 0; readonly lineChannelId: string; readonly channelSecret: string; readonly accessToken: string; readonly platform = "LINE"; constructor({ tenantId, channelId, channelName, lineChannelId, channelSecret, accessToken }: { tenantId: string; channelId: string; channelName:string; lineChannelId:string; channelSecret:string; accessToken:string; }) { super({ eventName: LineChannelConnectedEvent.eventName, eventVersion: LineChannelConnectedEvent.eventVersion, tenantId, channelId, channelName }); this.lineChannelId = lineChannelId; this.channelSecret = channelSecret; this.accessToken = accessToken; } }