Class

USIAIResult<T>

USI.AI

Public SDK type.

public sealed class USIAIResult<T> : IEquatable<USIAIResult<T>>

Constructors

USIAIResult`1

public USIAIResult(USIAIStatus Status, T Value, string Message = null, string ProviderCode = null)

Properties

Message

public string Message { get; set; }

ProviderCode

public string ProviderCode { get; set; }

Status

public USIAIStatus Status { get; set; }

Success

public bool Success { get; }

Value

public T Value { get; set; }

Methods

<Clone>$

public USIAIResult<T> <Clone>$()

Deconstruct

public void Deconstruct(USIAIStatus Status, T Value, string Message, string ProviderCode)

Equals

public bool Equals(object obj)

Equals

public bool Equals(USIAIResult<T> other)

Failed

public static USIAIResult<T> Failed(USIAIStatus status, string message, string providerCode = null)

GetHashCode

public int GetHashCode()

Succeeded

public static USIAIResult<T> Succeeded(T value)

ToString

public string ToString()