< 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:4
Coverable lines:4
Total lines:28
Line coverage:0% (0 of 4)
Covered branches:0
Total branches:0

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 SocialFeaturesAnalytics;
 5using UnityEngine;
 6
 7/// <summary>
 8/// Plugin feature that initialize the Join Channel Modal feature.
 9/// </summary>
 10public class JoinChannelModalPlugin : IPlugin
 11{
 12    private readonly JoinChannelComponentController joinChannelComponentController;
 13
 014    public JoinChannelModalPlugin()
 15    {
 016        joinChannelComponentController = new JoinChannelComponentController(
 17            JoinChannelComponentView.Create(),
 18            ChatController.i,
 19            DataStore.i,
 20            new SocialAnalytics(
 21                Environment.i.platform.serviceProviders.analytics,
 22                new UserProfileWebInterfaceBridge()),
 23            Resources.Load<StringVariable>("CurrentPlayerInfoCardId"),
 24            Environment.i.serviceLocator.Get<IChannelsFeatureFlagService>());
 025    }
 26
 027    public void Dispose() { joinChannelComponentController.Dispose(); }
 28}

Methods/Properties

JoinChannelModalPlugin()
Dispose()