< Summary

Class:JoinChannelModalPlugin
Assembly:JoinChannelHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/JoinChannelHUD/JoinChannelModalPlugin.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:31
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
JoinChannelModalPlugin()0%2100%
Dispose()0%2100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/JoinChannelHUD/JoinChannelModalPlugin.cs

#LineLine coverage
 1using DCL;
 2using DCL.Chat;
 3using DCL.Chat.Channels;
 4using DCL.Social.Chat;
 5using DCL.Social.Chat.Channels;
 6using SocialFeaturesAnalytics;
 7using UnityEngine;
 8
 9/// <summary>
 10/// Plugin feature that initialize the Join Channel Modal feature.
 11/// </summary>
 12public class JoinChannelModalPlugin : IPlugin
 13{
 14    private readonly JoinChannelComponentController joinChannelComponentController;
 15
 016    public JoinChannelModalPlugin()
 17    {
 018        ServiceLocator serviceLocator = Environment.i.serviceLocator;
 19
 020        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>());
 028    }
 29
 030    public void Dispose() { joinChannelComponentController.Dispose(); }
 31}

Methods/Properties

JoinChannelModalPlugin()
Dispose()