This adds ChannelId support to models that don't already have channel id.
Because:
not all payloads for topics have channel id in them
topics are inconsistent in their format
This uses a dictionary that associates a given topic with a given channel. This way we can be certain the channel id is what the user states it is, at time of calling ListenToX method. This also doesn't require parsing the topic to extract the channel id, which gets messy when all topics have different formatting.
This adds
ChannelId
support to models that don't already have channel id. Because:This uses a dictionary that associates a given topic with a given channel. This way we can be certain the channel id is what the user states it is, at time of calling
ListenToX
method. This also doesn't require parsing the topic to extract the channel id, which gets messy when all topics have different formatting.