| | 1 | | using DCL; |
| | 2 | | using DCL.Chat; |
| | 3 | | using DCL.Chat.Channels; |
| | 4 | | using DCL.Social.Chat; |
| | 5 | | using SocialFeaturesAnalytics; |
| | 6 | | using UnityEngine; |
| | 7 | |
|
| | 8 | | /// <summary> |
| | 9 | | /// Plugin feature that initialize the Join Channel Modal feature. |
| | 10 | | /// </summary> |
| | 11 | | public class JoinChannelModalPlugin : IPlugin |
| | 12 | | { |
| | 13 | | private readonly JoinChannelComponentController joinChannelComponentController; |
| | 14 | |
|
| 0 | 15 | | public JoinChannelModalPlugin() |
| | 16 | | { |
| 0 | 17 | | joinChannelComponentController = new JoinChannelComponentController( |
| | 18 | | JoinChannelComponentView.Create(), |
| | 19 | | ChatController.i, |
| | 20 | | DataStore.i, |
| | 21 | | new SocialAnalytics( |
| | 22 | | Environment.i.platform.serviceProviders.analytics, |
| | 23 | | new UserProfileWebInterfaceBridge()), |
| | 24 | | Resources.Load<StringVariable>("CurrentPlayerInfoCardId"), |
| | 25 | | Environment.i.serviceLocator.Get<IChannelsFeatureFlagService>()); |
| 0 | 26 | | } |
| | 27 | |
|
| 0 | 28 | | public void Dispose() { joinChannelComponentController.Dispose(); } |
| | 29 | | } |