// Copyright (c) Microsoft Corporation // The Microsoft Corporation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System.Collections.Generic; using System.Collections.ObjectModel; namespace HostsUILib.Models { /// /// Represents the parsed hosts file /// public class HostsData { /// /// Gets the parsed entries /// public ReadOnlyCollection Entries { get; } /// /// Gets the lines that couldn't be parsed /// public string AdditionalLines { get; } /// /// Gets a value indicating whether some entries been splitted /// public bool SplittedEntries { get; } public HostsData(List entries, string additionalLines, bool splittedEntries) { Entries = entries.AsReadOnly(); AdditionalLines = additionalLines; SplittedEntries = splittedEntries; } } }