초기커밋
This commit is contained in:
38
ServerBase/Etc/ResultValue.cs
Normal file
38
ServerBase/Etc/ResultValue.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
|
||||
|
||||
using ServerCore; using ServerBase;
|
||||
|
||||
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user