namespace StardewModdingAPI.Framework.Networking { internal class MultiplayerPeerMod : IMultiplayerPeerMod { /********* ** Accessors *********/ /// The mod's display name. public string Name { get; } /// The unique mod ID. public string ID { get; } /// The mod version. public ISemanticVersion Version { get; } /********* ** Public methods *********/ /// Construct an instance. /// The mod metadata. public MultiplayerPeerMod(RemoteContextModModel mod) { this.Name = mod.Name; this.ID = mod.ID?.Trim(); this.Version = mod.Version; } } }