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 : IWithResultValue { public Result Result { get; set; } public TResultValue ValueOfResult { get; } public ResultValue(Result result, TResultValue value) { Result = result; ValueOfResult = value; } public bool isResultOnly() => false; }