public final class NotificationLoaderTask extends android.os.AsyncTask<java.lang.Void,java.lang.Void,java.util.Set<UserNotification>>
Constructor and Description |
---|
NotificationLoaderTask(java.net.URL serverUrl,
NotificationLoaderFinishListener listener)
Constructs a new NotificationLoaderTask.
|
Modifier and Type | Method and Description |
---|---|
protected java.util.Set<UserNotification> |
doInBackground(java.lang.Void... params) |
protected void |
onPostExecute(java.util.Set<UserNotification> notifications) |
public NotificationLoaderTask(java.net.URL serverUrl, NotificationLoaderFinishListener listener)
serverUrl
- the URL of the JSON file to loadlistener
- the NotificationLoaderFinishListener which is called after the JSON file has been loaded and parsed.protected java.util.Set<UserNotification> doInBackground(java.lang.Void... params)
doInBackground
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,java.util.Set<UserNotification>>
protected void onPostExecute(java.util.Set<UserNotification> notifications)
onPostExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,java.util.Set<UserNotification>>