Android Open Source - socialcde4android Social C D E Request Factory






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

/**
 * 2012 Foxykeep (http://datadroid.foxykeep.com)
 * <p>/*www .  j  a  v  a2s.  co  m*/
 * 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.requestmanager;

import android.os.Parcel;

import com.foxykeep.datadroid.requestmanager.Request;

/**
 * Class used to create the {@link Request}s.
 *
 * @author Foxykeep, Francesco Ditrani
 */
public final class SocialCDERequestFactory {

    // Request types
    public static final int RETREIVE_WSERVICES = 0;
    public static final int WEBSERVER_AVAILABLE = 1;
    public static final int USERNAME_AVAILABLE = 2;
    public static final int SUBSCRIBE_USER = 3;
  public static final int CHANGE_PASSWORD = 4;
  public static final int GET_USER = 5;
  public static final int GET_FRIENDS = 6;
  public static final int GET_COLLEAGUE = 7;
  public static final int SET_FOLLOWED = 8;
  public static final int GET_OAUTHDATA = 9;
  public static final int AUTHORIZE = 10;
  public static final int GET_FEATURES = 11;
  public static final int SET_FEATURES = 12;
  public static final int UNREG_SERVICE = 13;
  public static final int RECORD_SERVICE = 14;
  public static final int SEND_TFSPOST = 15;
  public static final int GET_HIDE_SETTINGS = 16;
  public static final int SET_HIDE_SETTINGS = 17;
  public static final int GET_AVAILABLE_AVATARS = 18;
  public static final int SET_AVATAR = 19;
  public static final int GET_WPOSTS = 20;


    // Response data
    public static final String BUNDLE_USER = "it.uniba.socialcde4android.extra.USER";
    public static final String BUNDLE_DESC = "it.uniba.socialcde4android.extra.DESC";
  
  

    private SocialCDERequestFactory() {
        // no public constructor
    }

    /**
     * Create the send report request.
     * @return The request.
     */
    public static Request getWServiceRequest() {
        Request request = new Request(RETREIVE_WSERVICES);
        return request;
    }
    
    /**
     * Creates the get report request.
     * @return The request.
     */
    public static Request isWebServRunRequest() {
        Request request = new Request(WEBSERVER_AVAILABLE);
        return request;
    }

  public static Request isUsernameAvailable() {
    Request request = new Request(USERNAME_AVAILABLE);    
    return request;
  }

  public static Request subscribeUser() {
    Request request = new Request(SUBSCRIBE_USER);    
    return request;
  }

  public static Request changePass() {
    Request request = new Request(CHANGE_PASSWORD);    
    return request;
  }

  public static Request getWUser() {
    Request request = new Request(GET_USER);    
    return request;
  }



  public static Request GetFriends() {
    Request request = new Request(GET_FRIENDS);    
    return request;
  }

  public static Request getColleagueProfileRequest() {
    Request request = new Request(GET_COLLEAGUE);    
    return request;
  }

  public static Request setFollowed() {
    Request request = new Request(SET_FOLLOWED);    
    return request;
  }

  public static Request getOAuthDataRequest() {
    Request request = new Request(GET_OAUTHDATA);    
    return request;
  }

  public static Request authorize() {
    Request request = new Request(AUTHORIZE);    
    return request;
  }

  public static Request getFeatures() {
    Request request = new Request(GET_FEATURES);    
    return request;
  }

  public static Request setActiveFeatures() {
    Request request = new Request(SET_FEATURES);    
    return request;
  }

  public static Request unregisterService() {
    Request request = new Request(UNREG_SERVICE);    
    return request;
  }

  public static Request recordService() {
    Request request = new Request(RECORD_SERVICE);    
    return request;
  }

  public static Request sendTFSpost() {
    Request request = new Request(SEND_TFSPOST);    
    return request;
  }

  public static Request getHideSettings() {
    Request request = new Request(GET_HIDE_SETTINGS);    
    return request;
  }

  public static Request setHideSettings() {
    Request request = new Request(SET_HIDE_SETTINGS);    
    return request;
  }

  public static Request getAvailableAvatars() {
    Request request = new Request(GET_AVAILABLE_AVATARS);    
    return request;
  }

  public static Request setAvatar() {
    Request request = new Request(SET_AVATAR);    
    return request;
  }

  public static Request getWPosts() {
    Request request = new Request(GET_WPOSTS);    
    return request;
  }

  

}




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