Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ApiResult<TResponse>

Type Parameters

  • TResponse

Hierarchy

  • ApiResult

Implements

Index

Constructors

Properties

response?: TResponse

Accessors

  • get completed(): boolean
  • Returns boolean

  • get errorCode(): string
  • Returns string

  • get errorMessage(): string
  • Returns string

  • get errorSummary(): string
  • Returns string

  • get failed(): boolean
  • Returns boolean

  • get succeeded(): boolean
  • Returns boolean

Methods

  • addFieldError(fieldName: string, message: string, errorCode?: string): void
  • Parameters

    • fieldName: string
    • message: string
    • Optional errorCode: string

    Returns void

  • fieldErrorMessage(fieldName: string): string
  • hasFieldError(fieldName: string): boolean
  • showSummary(exceptFields?: string[]): boolean
  • Parameters

    • Optional exceptFields: string[]

    Returns boolean

  • summaryMessage(exceptFields?: string[]): string
  • Parameters

    • Optional exceptFields: string[]

    Returns string

Generated using TypeDoc