Skip to content
This repository has been archived by the owner on Apr 16, 2023. It is now read-only.

Commit

Permalink
Track number of times partners viewed
Browse files Browse the repository at this point in the history
  • Loading branch information
chrislo27 committed May 10, 2020
1 parent c0c7279 commit 8d59cdf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,10 @@ class PartnersScreen(main: RHRE3Application) : ToolboksScreen<RHRE3Application,
Article("partner_oofie", "oofie", "", "https://i.imgur.com/tsSWlRa.jpg", 0L, "https://www.youtube.com/channel/UCUbBQ2x33-KhEbP3FTesY8A", null, false),
Article("partner_Suwa-ko", "Suwa-ko", "", "https://i.imgur.com/ArJ3Gqe.jpg", 0L, "https://www.youtube.com/channel/UCj-veAzBbeVqac7ISPsGvLw", null, false),
Article("partner_Draster", "Draster", "", "https://i.imgur.com/SwZ60Wb.jpg", 0L, "https://www.youtube.com/channel/UCtlLcwZ_UXdyfvPGI5Meu0w", null, false),
Article("partner_Ssure2", "Ssure2", "", "https://i.imgur.com/TwTta9N.jpg", 0L, "https://www.youtube.com/user/Ssure2/", null, false),
Article("partner_Drummer", "The Drummer", "", "https://i.imgur.com/E4wB1cp.jpg", 0L, "https://www.youtube.com/channel/UC1I8JOghDzI328ALcaPr4CQ", null, false)
)
const val PARTNERS_VERSION: Int = 3
const val PARTNERS_VERSION: Int = 4
}

override val stage: GenericStage<PartnersScreen> = GenericStage(main.uiPalette, null, main.defaultCamera)
Expand Down Expand Up @@ -110,6 +111,7 @@ class PartnersScreen(main: RHRE3Application) : ToolboksScreen<RHRE3Application,
randomizePartners()
DiscordHelper.updatePresence(PresenceState.ViewingPartners)
main.preferences.putInteger(PreferenceKeys.VIEWED_PARTNERS_VERSION, PARTNERS_VERSION).flush()
AnalyticsHandler.track("View All Partners", mapOf("partnersVersion" to "$PARTNERS_VERSION"))
}

override fun tickUpdate() {
Expand Down

0 comments on commit 8d59cdf

Please sign in to comment.