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