We need to map rewards ("first", etc.) to level (how many points the viewer earns for redeeming).
Currently, any reward has level=1. This doesn't make sense as unrelated rewards (like "hydrate") are treated as something earning the viewer points.
Reward mappings should be per-stream because rewards are per-stream.
Alternative considered: We could guess the level based on the reward name. reward.name in {"first", "1st"} could work, for example. However, I think we'll need a UI for creating rewards anyway, so I think it makes sense to allow the streamer to explicitly allocate points for redemptions.
[x] AuthenticatedTwitch method to get all rewards in the stream (name + ID)
[x] Column in FirstAccountsDb to store the ID of the 'first' reward (or null)
[x] UI for choosing the 'first' reward (calls Twitch API; puts choice into DB)
We need to map rewards ("first", etc.) to level (how many points the viewer earns for redeeming).
Currently, any reward has level=1. This doesn't make sense as unrelated rewards (like "hydrate") are treated as something earning the viewer points.
Reward mappings should be per-stream because rewards are per-stream.
Alternative considered: We could guess the level based on the reward name.
reward.name in {"first", "1st"}
could work, for example. However, I think we'll need a UI for creating rewards anyway, so I think it makes sense to allow the streamer to explicitly allocate points for redemptions.