wabbajack/Wabbajack.Common/StatusFeed/GenericInfo.cs

27 lines
760 B
C#
Raw Normal View History

2019-12-04 04:12:08 +00:00
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; }
2019-12-07 03:50:50 +00:00
private readonly string _extendedDescription;
public override string ExtendedDescription => _extendedDescription ?? ShortDescription;
2019-12-04 04:12:08 +00:00
public GenericInfo(string short_description, string? long_description = null)
2019-12-04 04:12:08 +00:00
{
ShortDescription = short_description;
_extendedDescription = long_description ?? string.Empty;
2019-12-04 04:12:08 +00:00
}
public override string ToString()
{
return ShortDescription;
}
}
}