| | 1 | | using System.Collections.Generic; |
| | 2 | | using UnityEngine; |
| | 3 | |
|
| | 4 | | namespace Analytics |
| | 5 | | { |
| | 6 | | public class SupportAnalytics : ISupportAnalytics |
| | 7 | | { |
| | 8 | | private const string PLAYER_OPENED_SUPPORT = "player_opened_support"; |
| | 9 | |
|
| | 10 | | private readonly IAnalytics analytics; |
| | 11 | |
|
| 2 | 12 | | public SupportAnalytics(IAnalytics analytics) |
| | 13 | | { |
| 2 | 14 | | this.analytics = analytics; |
| 2 | 15 | | } |
| | 16 | |
|
| | 17 | | public void SendOpenSupport(OpenSupportSource openSupportSource) |
| | 18 | | { |
| 0 | 19 | | analytics.SendAnalytic(PLAYER_OPENED_SUPPORT, new Dictionary<string, string>() |
| | 20 | | { |
| | 21 | | { "source", openSupportSource.ToString() } |
| | 22 | | }); |
| 0 | 23 | | } |
| | 24 | | } |
| | 25 | | } |