From af85cc85a2e7016a26260042bfc75a2b8bcc2fec Mon Sep 17 00:00:00 2001 From: Alraj Dev <88019376+alraj-dev@users.noreply.github.com> Date: Sun, 30 Jan 2022 23:40:51 +0530 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c665cc2..4a40bdf 100644 --- a/README.md +++ b/README.md @@ -48,9 +48,9 @@ fun getUser(): SimpleCall> Use single function callback: **`SimpleCallback`** `SimpleCallback.onResult()` ```kotlin - getUser().enqueue { response, exception, call -> - // handle exception and response - } +getUser().enqueue { response, exception, call -> + // handle exception and response +} ``` `SimpleCallback` gives 3 parameters: @@ -83,8 +83,8 @@ val retrofit = Retrofit.Builder() You can also include or exclude the default conditions for individual calls ```kotlin - getUser().exclude(NULL_DATA).enqueue {} - getUser().include(NULL_DATA).enqueue {} +getUser().exclude(NULL_DATA).enqueue {} +getUser().include(NULL_DATA).enqueue {} ``` MultipleCall: