CodeLiturgy.Dashboard/BlueWest.Data/DataQueryResult.cs

29 lines
550 B
C#
Raw Normal View History

2021-12-10 03:04:48 +03:00
using System;
using System.Collections.Generic;
using System.Text;
namespace BlueWest.Data
{
class DataQueryResult { }
internal sealed class PositiveResult<T> : DataQueryResult
{
public readonly T Value;
public PositiveResult(T value)
{
Value = value;
}
}
internal sealed class NegativeResult : DataQueryResult
{
public readonly string UserMessage;
public NegativeResult(string userMessage)
{
UserMessage = userMessage;
}
}
}