Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class DataObject
- {
- public string Name;
- public unsigned int Age;
- }
- class RequestDescription
- {
- int RequestTime;
- }
- void loadDataFromApi(
- string uri,
- Action<DataObject, RequestDescription> onFinishedLoadingCallback
- )
- {
- // use uri to call a service and load data
- // parse said data for a format
- onFinishedLoadingCallback(data, additionalInformation);
- }
Advertisement
Add Comment
Please, Sign In to add comment