Skip to main content

Response Wrapper

LMResponse<T> caters the base response for all the APIs. Each data function has its own response model which are wrapped inside LMResponse<T>.

note

All the response variables throughout the documentation are of type LMResponse<T>.

The following table shows the structure of the wrapper LMResponse<T>.

VARIABLETYPEDESCRIPTIONOPTIONAL
successBooltrue if the API call was successful, false otherwise.
errorMessageStringError message in case the API fails.
dataTGeneric variable that holds the data received in API response.