Added subage and followage to usercard (#2023)

* Added subage and followage information to usercard

We are using Leppunen's API here to determine user's subage to the current channel and since that API call also returns followage information I decided to utilize that and save ourselves an extra Helix API call.
I also added new files specifying new class and methods for Ivr API, which can be very easily expanded with new methods in the future if we ever have to do that.
When I was coding I also saw couple unnecessary nitpicks which I fixed :)

* Added changelog entry

* remove empty lambda

* Update UserInfoPopup.cpp

* xd

Co-authored-by: fourtf <tf.four@gmail.com>
This commit is contained in:
Paweł
2020-10-04 18:32:52 +02:00
committed by GitHub
parent 35816c5d8a
commit 776ce8bdbc
9 changed files with 167 additions and 9 deletions
+2
View File
@@ -10,6 +10,7 @@
#include "common/Args.hpp"
#include "common/Modes.hpp"
#include "common/Version.hpp"
#include "providers/IvrApi.hpp"
#include "providers/twitch/api/Helix.hpp"
#include "providers/twitch/api/Kraken.hpp"
#include "singletons/Paths.hpp"
@@ -45,6 +46,7 @@ int main(int argc, char **argv)
}
else
{
IvrApi::initialize();
Helix::initialize();
Kraken::initialize();