reply_endpoint library
Where replies to an event go, a ReplyEndpoint, and its JSON, alone.
For code that must not load a decoder of what strangers sent: this
library reaches none of UserSaid, Quote or WhatChanged, which the
whole package's library exports.
Classes
- RepliesInSlackConversation
- Replies go to Slack's channel, in thread, through origin. Slack takes every reply at one web address and names its conversation in the request's body, so a reply is confined to its conversation by channel and thread, never by where it is sent; origin is what the trajectory's rules say it may reply through at all.
- RepliesUnderWebAddress
- Replies go under prefix, a web address that names the conversation, as Teams' Bot Connector takes them: a reply's request is confined to its conversation by where it is sent.
- ReplyEndpoint
- Where replies to an event go: RepliesUnderWebAddress or RepliesInSlackConversation.
- SlackChannelId
-
A Slack conversation's id: a public or private channel (
C…), a direct message (D…) or a group message (G…). - SlackMessageTimestamp
-
The timestamp (
ts) Slack names a message by, such as1700000000.000100. A thread is named by its root message's timestamp.
Functions
-
decodeReplyEndpoint(
Object? json, String field) → ReplyEndpoint -
jsonread back as the endpoint encodeReplyEndpoint wrote. A FormatException namingfieldfor anything it doesn't write: an unknown case, a field missing, extra or malformed. -
encodeReplyEndpoint(
ReplyEndpoint endpoint) → JsonObject -
endpointas JSON: