< Summary

Class:PublicChatModel
Assembly:WorldChatWindowHUD
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/PublicChatModel.cs
Covered lines:16
Uncovered lines:0
Coverable lines:16
Total lines:35
Line coverage:100% (16 of 16)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
PublicChatModel(...)0%110100%
CopyFrom(...)0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/HUD/WorldChatWindowHUD/PublicChatModel.cs

#LineLine coverage
 1using System;
 2
 3[Serializable]
 4public class PublicChatModel : BaseComponentModel
 5{
 6    public string channelId;
 7    public string name;
 8    public string description;
 9    public bool joined;
 10    public int memberCount;
 11    public bool muted;
 12    public bool showOnlyOnlineMembers;
 13
 9114    public PublicChatModel(string channelId, string name, string description, bool joined,
 15        int memberCount, bool muted, bool showOnlyOnlineMembers)
 16    {
 9117        this.channelId = channelId;
 9118        this.name = name;
 9119        this.description = description;
 9120        this.joined = joined;
 9121        this.memberCount = memberCount;
 9122        this.muted = muted;
 9123        this.showOnlyOnlineMembers = showOnlyOnlineMembers;
 9124    }
 25
 26    public void CopyFrom(PublicChatModel model)
 27    {
 128        channelId = model.channelId;
 129        name = model.name;
 130        description = model.description;
 131        joined = model.joined;
 132        memberCount = model.memberCount;
 133        muted = model.muted;
 134    }
 35}