Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- this.consumer.request(
- new Protocol.Requests.GetUsers(),
- Protocol.Responses.UsersList
- ).then((response: Protocol.Responses.UsersList) => {
- // Success. Response is an instance of UsersList
- }).catch((error: Error) => {
- // Fail. Could be a few reasons, include: response is NOT an instance of UsersList
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement