Android Open Source - socialcde4android Social C D E Request Service






From Project

Back to project page socialcde4android.

License

The source code is released under:

MIT License

If you think the Android project socialcde4android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/**
 * 2011 Foxykeep (http://datadroid.foxykeep.com)
 * <p>// www  . j ava  2 s .  c  om
 * Licensed under the Beerware License : <br />
 * As long as you retain this notice you can do whatever you want with this stuff. If we meet some
 * day, and you think this stuff is worth it, you can buy me a beer in return
 */

package it.uniba.socialcde4android.data.service;



import it.uniba.socialcde4android.data.operation.*;
import it.uniba.socialcde4android.data.requestmanager.SocialCDERequestFactory;

import com.foxykeep.datadroid.service.RequestService;

import android.content.Intent;

/**
 * This class is called by the {@link SocialCDERequestManager} through the {@link Intent} system.
 *
 * @author Foxykeep, Francesco Ditrani
 */
public final class SocialCDERequestService extends RequestService {

  @Override
  protected int getMaximumNumberOfThreads() {
    return 3;
  }

  @Override
  public Operation getOperationForType(int requestType) {
    switch (requestType) {
    case SocialCDERequestFactory.WEBSERVER_AVAILABLE:
      return new IsWebServiceRunning_Operation();
    case SocialCDERequestFactory.RETREIVE_WSERVICES:
      return new RetrieveServices_Operation();
    case SocialCDERequestFactory.USERNAME_AVAILABLE:
      return new IsUsernameAvailable_Operation();
    case SocialCDERequestFactory.SUBSCRIBE_USER:
      return new SubscribeUser_Operation();
    case SocialCDERequestFactory.CHANGE_PASSWORD:
      return new ChangePasswordWithPassword_Operation();
    case SocialCDERequestFactory.GET_USER:
      return new GetUser_Operation();
    case SocialCDERequestFactory.GET_FRIENDS:
      return new GetFriends_Operation();
    case SocialCDERequestFactory.GET_COLLEAGUE:
      return new GetColleagueProfile_Operation();
    case SocialCDERequestFactory.SET_FOLLOWED:
      return new SetFollowed_Operation();
    case SocialCDERequestFactory.GET_OAUTHDATA:
      return new GetOAuthData_Operation();
    case SocialCDERequestFactory.AUTHORIZE:
      return new Authorize_Operation();
    case SocialCDERequestFactory.GET_FEATURES:
      return new GetFeatures_Operation();
    case SocialCDERequestFactory.SET_FEATURES:
      return new SetActiveFeatures_Operation();
    case SocialCDERequestFactory.UNREG_SERVICE:
      return new UnregisterService_Operation();
    case SocialCDERequestFactory.RECORD_SERVICE:
      return new RecordService_Operation();
    case SocialCDERequestFactory.SEND_TFSPOST:
      return new SendTFSpost_Operation();
    case SocialCDERequestFactory.GET_HIDE_SETTINGS:
      return new GetHideSettings_Operation();
    case SocialCDERequestFactory.SET_HIDE_SETTINGS:
      return new SetHideSettings_Operation();
    case SocialCDERequestFactory.GET_AVAILABLE_AVATARS:
      return new GetAvailableAvatars_Operation();
    case SocialCDERequestFactory.SET_AVATAR:
      return new SetAvatar_Operation();
    case SocialCDERequestFactory.GET_WPOSTS:
      return new GetWposts_Operation();
    }
    
    
    return null;
  }
}




Java Source Code List

it.uniba.socialcde4android.activity.HomeActivity.java
it.uniba.socialcde4android.activity.LoginActivity.java
it.uniba.socialcde4android.activity.RegistrationActivity.java
it.uniba.socialcde4android.activity.WebViewActivity.java
it.uniba.socialcde4android.adapters.ConfiguratedImageLoader.java
it.uniba.socialcde4android.adapters.FeaturesAdapter.java
it.uniba.socialcde4android.adapters.ServicesAdapter.java
it.uniba.socialcde4android.adapters.SquareImageView.java
it.uniba.socialcde4android.adapters.TimeLineAdapter.java
it.uniba.socialcde4android.adapters.UserAvatarsAdapter.java
it.uniba.socialcde4android.adapters.UsersAdapter.java
it.uniba.socialcde4android.config.Config.java
it.uniba.socialcde4android.costants.Consts.java
it.uniba.socialcde4android.costants.Error_consts.java
it.uniba.socialcde4android.costants.Services_id.java
it.uniba.socialcde4android.data.operation.Authorize_Operation.java
it.uniba.socialcde4android.data.operation.ChangePasswordWithPassword_Operation.java
it.uniba.socialcde4android.data.operation.GetAvailableAvatars_Operation.java
it.uniba.socialcde4android.data.operation.GetColleagueProfile_Operation.java
it.uniba.socialcde4android.data.operation.GetFeatures_Operation.java
it.uniba.socialcde4android.data.operation.GetFriends_Operation.java
it.uniba.socialcde4android.data.operation.GetHideSettings_Operation.java
it.uniba.socialcde4android.data.operation.GetOAuthData_Operation.java
it.uniba.socialcde4android.data.operation.GetUser_Operation.java
it.uniba.socialcde4android.data.operation.IsUsernameAvailable_Operation.java
it.uniba.socialcde4android.data.operation.IsWebServiceRunning_Operation.java
it.uniba.socialcde4android.data.operation.RecordService_Operation.java
it.uniba.socialcde4android.data.operation.RetrieveServices_Operation.java
it.uniba.socialcde4android.data.operation.SendTFSpost_Operation.java
it.uniba.socialcde4android.data.operation.SetActiveFeatures_Operation.java
it.uniba.socialcde4android.data.operation.SetAvatar_Operation.java
it.uniba.socialcde4android.data.operation.SetFollowed_Operation.java
it.uniba.socialcde4android.data.operation.SetHideSettings_Operation.java
it.uniba.socialcde4android.data.operation.SubscribeUser_Operation.java
it.uniba.socialcde4android.data.operation.UnregisterService_Operation.java
it.uniba.socialcde4android.data.requestmanager.SocialCDERequestFactory.java
it.uniba.socialcde4android.data.requestmanager.SocialCDERequestManager.java
it.uniba.socialcde4android.data.service.SocialCDERequestService.java
it.uniba.socialcde4android.dialogs.ChangePasswordDialog.java
it.uniba.socialcde4android.dialogs.ChooseAvatarDialog.java
it.uniba.socialcde4android.dialogs.HideUnhideDialog.java
it.uniba.socialcde4android.dialogs.NoNetworkDialog.java
it.uniba.socialcde4android.dialogs.SetServiceFeaturesDialog.java
it.uniba.socialcde4android.dialogs.TFSAuthDialog.java
it.uniba.socialcde4android.fragments.TimeLine_AbstractFragment.java
it.uniba.socialcde4android.fragments.TimeLine_Fragment.java
it.uniba.socialcde4android.fragments.WUserColleagueProfile_Fragment.java
it.uniba.socialcde4android.fragments.WUserProfile_Fragment.java
it.uniba.socialcde4android.preferences.Preferences.java
it.uniba.socialcde4android.shared.library.JsonDateDeserializer.java
it.uniba.socialcde4android.shared.library.WFeature.java
it.uniba.socialcde4android.shared.library.WHidden.java
it.uniba.socialcde4android.shared.library.WOAuthData.java
it.uniba.socialcde4android.shared.library.WPost.java
it.uniba.socialcde4android.shared.library.WService.java
it.uniba.socialcde4android.shared.library.WUser.java
it.uniba.socialcde4android.utility.ScreenUtility.java