39 lines
694 B
C#
39 lines
694 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
using ServerCore;
|
|
|
|
|
|
namespace ServerBase;
|
|
|
|
public class ResultOnly : IWithResult
|
|
{
|
|
public Result Result { get; set; }
|
|
|
|
public ResultOnly(Result result)
|
|
{
|
|
Result = result;
|
|
}
|
|
|
|
public bool isResultOnly() => true;
|
|
}
|
|
|
|
public class ResultValue<TResultValue> : IWithResultValue<TResultValue>
|
|
{
|
|
public Result Result { get; set; }
|
|
public TResultValue ValueOfResult { get; }
|
|
|
|
public ResultValue(Result result, TResultValue value)
|
|
{
|
|
Result = result;
|
|
ValueOfResult = value;
|
|
}
|
|
|
|
public bool isResultOnly() => false;
|
|
}
|