public abstract class SocialLoadTask extends android.os.AsyncTask<Integer,Void,ArrayList<SocialActivityInfo>>
Modifier and Type | Field and Description |
---|---|
protected org.exoplatform.social.client.api.service.ActivityService<org.exoplatform.social.client.api.model.RestActivity> |
activityService |
Constructor and Description |
---|
SocialLoadTask(android.content.Context context,
android.view.MenuItem loader) |
Modifier and Type | Method and Description |
---|---|
ArrayList<SocialActivityInfo> |
doInBackground(Integer... params) |
protected abstract org.exoplatform.social.client.api.common.RealtimeListAccess<org.exoplatform.social.client.api.model.RestActivity> |
getRestActivityList(org.exoplatform.social.client.api.model.RestIdentity identity,
org.exoplatform.social.client.api.service.QueryParams params)
Get the list of RestActivity from the Social REST service.
|
protected abstract ArrayList<SocialActivityInfo> |
getSocialActivityList()
Get the list of SocialActivity for the current stream.
|
protected void |
onCancelled(ArrayList<SocialActivityInfo> result) |
void |
onPostExecute(ArrayList<SocialActivityInfo> result) |
void |
onPreExecute() |
void |
setResult(ArrayList<SocialActivityInfo> result) |
protected org.exoplatform.social.client.api.service.ActivityService<org.exoplatform.social.client.api.model.RestActivity> activityService
public SocialLoadTask(android.content.Context context, android.view.MenuItem loader)
public void onPreExecute()
onPreExecute
in class android.os.AsyncTask<Integer,Void,ArrayList<SocialActivityInfo>>
protected abstract org.exoplatform.social.client.api.common.RealtimeListAccess<org.exoplatform.social.client.api.model.RestActivity> getRestActivityList(org.exoplatform.social.client.api.model.RestIdentity identity, org.exoplatform.social.client.api.service.QueryParams params) throws org.exoplatform.social.client.api.SocialClientLibException
identity
- The RestIdentity of the user.params
- The parameters to send to the REST service.org.exoplatform.social.client.api.SocialClientLibException
protected abstract ArrayList<SocialActivityInfo> getSocialActivityList()
public ArrayList<SocialActivityInfo> doInBackground(Integer... params)
doInBackground
in class android.os.AsyncTask<Integer,Void,ArrayList<SocialActivityInfo>>
public void onPostExecute(ArrayList<SocialActivityInfo> result)
onPostExecute
in class android.os.AsyncTask<Integer,Void,ArrayList<SocialActivityInfo>>
protected void onCancelled(ArrayList<SocialActivityInfo> result)
onCancelled
in class android.os.AsyncTask<Integer,Void,ArrayList<SocialActivityInfo>>
public void setResult(ArrayList<SocialActivityInfo> result)
Copyright © 2003–2016 eXo Platform SAS. All rights reserved.