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