/** * @inheritdoc * * @param ChatUpdatePayload $payload */ protected function getExpectedPayloadData(PayloadInterface $payload) { return ['channel' => $payload->getChannelId(), 'ts' => $payload->getSlackTimestamp(), 'text' => $payload->getText()]; }
/** * @inheritdoc * * @param ChannelsKickPayload $payload */ protected function getExpectedPayloadData(PayloadInterface $payload) { return ['channel' => $payload->getChannelId(), 'user' => $payload->getUserId()]; }
/** * @inheritdoc * * @param ChannelsSetTopicPayload $payload */ protected function getExpectedPayloadData(PayloadInterface $payload) { return ['channel' => $payload->getChannelId(), 'topic' => $payload->getTopic()]; }
/** * {@inheritdoc} * * @param ChannelsHistoryPayload $payload */ protected function getExpectedPayloadData(PayloadInterface $payload) { return ['channel' => $payload->getChannelId(), 'latest' => $payload->getLatest(), 'oldest' => $payload->getOldest(), 'count' => $payload->getCount()]; }
/** * {@inheritdoc} * * @param ChannelsSetPurposePayload $payload */ protected function getExpectedPayloadData(PayloadInterface $payload) { return ['channel' => $payload->getChannelId(), 'purpose' => $payload->getPurpose()]; }