Guest User

Untitled

a guest
Oct 17th, 2016
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. class DataObject
  2. {
  3.     public string Name;
  4.     public unsigned int Age;
  5. }
  6.  
  7. class RequestDescription
  8. {
  9.     int RequestTime;
  10. }
  11.  
  12. void loadDataFromApi(
  13.     string uri,
  14.     Action<DataObject, RequestDescription> onFinishedLoadingCallback
  15. )
  16. {
  17.     // use uri to call a service and load data
  18.     // parse said data for a format
  19.  
  20.     onFinishedLoadingCallback(data, additionalInformation);
  21. }
Advertisement
Add Comment
Please, Sign In to add comment