< 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:29
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 DCL.Social.Chat;
 5using SocialFeaturesAnalytics;
 6using UnityEngine;
 7
 8/// <summary>
 9/// Plugin feature that initialize the Join Channel Modal feature.
 10/// </summary>
 11public class JoinChannelModalPlugin : IPlugin
 12{
 13    private readonly JoinChannelComponentController joinChannelComponentController;
 14
 015    public JoinChannelModalPlugin()
 16    {
 017        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>());
 026    }
 27
 028    public void Dispose() { joinChannelComponentController.Dispose(); }
 29}

Methods/Properties

JoinChannelModalPlugin()
Dispose()