Interface RpcResult<T>

Type Parameters:
T - the result value type

public interface RpcResult<T>
Represents a general result of a call, request, or operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NonNull List<RpcError>
    Returns a set of errors and warnings which occurred during processing the call.
    Returns the value result of the call or null if no result is available.
    boolean
    Returns whether or not processing of the call was successful.
  • Method Details

    • isSuccessful

      boolean isSuccessful()
      Returns whether or not processing of the call was successful.
      Returns:
      true if processing was successful, false otherwise.
    • getResult

      T getResult()
      Returns the value result of the call or null if no result is available.
    • getErrors

      @NonNull List<RpcError> getErrors()
      Returns a set of errors and warnings which occurred during processing the call.
      Returns:
      a list of RpcErrors