Define the interfaces that App communicate with server.