29 lines
550 B
C#
29 lines
550 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|