wabbajack/Wabbajack.Common/StatusFeed/GenericInfo.cs
2020-04-03 18:23:13 -05:00

27 lines
760 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Wabbajack.Common.StatusFeed
{
public class GenericInfo : AStatusMessage, IInfo
{
public override string ShortDescription { get; }
private readonly string _extendedDescription;
public override string ExtendedDescription => _extendedDescription ?? ShortDescription;
public GenericInfo(string short_description, string? long_description = null)
{
ShortDescription = short_description;
_extendedDescription = long_description ?? string.Empty;
}
public override string ToString()
{
return ShortDescription;
}
}
}