Skip to content

Instantly share code, notes, and snippets.

@michaeldejong
Created October 24, 2019 20:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaeldejong/e3001f2dcc0db0d75fdaba05f00ee3b7 to your computer and use it in GitHub Desktop.
Save michaeldejong/e3001f2dcc0db0d75fdaba05f00ee3b7 to your computer and use it in GitHub Desktop.
@Data
public class GetUserRequest {
private final Client client;
private final long userId;
public Single<User> execute() {
return client.get(Service.REST_API, "/users/" + userId);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment