public abstract List<CloudNetwork> getNetworks() -
returns the list of networks the current user has access to.
Parameters
None
Returns
Returns a List<CloudNetwork> objects.
Example
try {
CloudSession session = CloudSession.connect(emailAddress, password, apiKey, parameters);
if (session) {
List<CloudNetwork> networks = session.getNetworks();
Log.d(TAG, "List of networks: ");
for (CloudNetwork n : networks){
Log.d(TAG, "identifier: " + n.getIdentifier());
Log.d(TAG, "subscriptionLevel: " + n.getSubscriptionLevel());
Log.d(TAG, "isPaidNetwork: " + n.isPaidNetwork());
Log.d(TAG, "isHomeNetwork: " + n.isHomeNetwork());
Log.d(TAG, "creationTime: " + n.getCreationTime().getTime().toString());
}
Log.d(TAG, "-------------");
} else {
Log.d(TAG, "No Session available!");
}
} catch (AlfrescoSessionException e) {
Log.e(TAG, "Failed to connect: " + e.toString());
}