public ApiEnumResponseBuilder(IApiEnumResponse <T> obj) : base(obj) { if (obj == null) { throw new ArgumentNullException(nameof(obj)); } }
public static IApiEnumResponse <T> SetException <T>(this IApiEnumResponse <T> response, Exception exception) { ApiEnumResponse <T> r = (ApiEnumResponse <T>)response; r.Exception = ExceptionInfo.GetFromException(exception); return(response); }
/// <summary> /// Returns a builder on a pre-allocated instance /// </summary> /// <returns>The API enum response builder.</returns> /// <typeparam name="T">The payload data type</typeparam> public IApiEnumResponseBuilder <T> GetApiEnumResponseBuilder <T>(IApiEnumResponse <T> obj) => new ApiEnumResponseBuilder <T>(obj);