Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. this.consumer.request(
  2. new Protocol.Requests.GetUsers(),
  3. Protocol.Responses.UsersList
  4. ).then((response: Protocol.Responses.UsersList) => {
  5. // Success. Response is an instance of UsersList
  6. }).catch((error: Error) => {
  7. // Fail. Could be a few reasons, include: response is NOT an instance of UsersList
  8. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement