forked from HearthSim/Hearthstone-Deck-Tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Conflicts: Hearthstone Deck Tracker/Core.cs Hearthstone Deck Tracker/Hearthstone Deck Tracker.csproj
- Loading branch information
Showing
17 changed files
with
133 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace Hearthstone_Deck_Tracker.Enums | ||
{ | ||
public enum LoginType | ||
{ | ||
None, | ||
AutoLogin, | ||
AutoGuest, | ||
Login, | ||
Guest, | ||
Register | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Garlic; | ||
|
||
//using Garlic; | ||
|
||
namespace Hearthstone_Deck_Tracker.Analytics | ||
{ | ||
internal class Analytics | ||
{ | ||
private const string Domain = "app.hsdecktracker.net"; | ||
private const string GACode = "UA-68659282-3"; | ||
private static readonly AnalyticsSession Session = new AnalyticsSession(Domain, GACode); | ||
private static IAnalyticsPageViewRequest _pageViewRequest; | ||
|
||
public static void TrackEvent(string category, string action, string label = "", string value = "") | ||
{ | ||
if(!Config.Instance.GoogleAnalytics) | ||
return; | ||
if(_pageViewRequest == null) | ||
return; | ||
_pageViewRequest.SendEvent(category, action, label, value); | ||
} | ||
|
||
public static void TrackPageView(string page, string title) | ||
{ | ||
if(!Config.Instance.GoogleAnalytics) | ||
return; | ||
_pageViewRequest = Session.CreatePageViewRequest(page, title); | ||
_pageViewRequest.Send(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Garlic" version="2.1.0.0" targetFramework="net45" /> | ||
<package id="MahApps.Metro" version="1.1.2.0" targetFramework="net45" /> | ||
<package id="Newtonsoft.Json" version="6.0.8" targetFramework="net45" /> | ||
</packages> |
Oops, something went wrong.