Android Open Source - socialcde4android W 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

package it.uniba.socialcde4android.shared.library;
//from   w  w w . j a v  a  2  s .  co  m
import android.os.Parcel;
import android.os.Parcelable;

public class WService  implements Parcelable{
  // / <summary>
  // / Identifier of the service.
  // / </summary>
  public int Id;

  // / <summary>
  // / Name of the service.
  // / </summary>
  public String Name;

  // / <summary>
  // / Host of the service.
  // / </summary>
  public String Host;

  // / <summary>
  // / Service to the base of the service.
  // / </summary>
  public String BaseService;

  // / <summary>
  // / Image logo of the service.
  // / </summary>
  public String Image;

  // / <summary>
  // / True if the current user is registered to the service. False otherwise.
  // / </summary>
  public boolean Registered;

  // / <summary>
  // / True if the service require OAuth procedure, false otherwise.
  // / </summary>
  public boolean RequireOAuth;

  // / <summary>
  // / Version of OAuth procedure required.
  // / </summary>
  public int OAuthVersion;

  // / <summary>
  // / True if the service require TFS authetication procedure, false
  // otherwise.
  // / </summary>
  public boolean RequireTFSAuthentication;

  // / <summary>
  // / True if the TFS authetication procedure require domain, false
  // otherwise.
  // / </summary>
  public boolean RequireTFSDomain;

  public int getId() {
    return Id;
  }

  public void setId(int id) {
    Id = id;
  }

  public String getName() {
    return Name;
  }

  public void setName(String name) {
    Name = name;
  }

  public String getHost() {
    return Host;
  }

  public void setHost(String host) {
    Host = host;
  }

  public String getBaseService() {
    return BaseService;
  }

  public void setBaseService(String baseService) {
    BaseService = baseService;
  }

  public String getImage() {
    return Image;
  }

  public void setImage(String image) {
    Image = image;
  }

  public boolean isRegistered() {
    return Registered;
  }

  public void setRegistered(boolean registered) {
    Registered = registered;
  }

  public boolean isRequireOAuth() {
    return RequireOAuth;
  }

  public void setRequireOAuth(boolean requireOAuth) {
    RequireOAuth = requireOAuth;
  }

  public int getOAuthVersion() {
    return OAuthVersion;
  }

  public void setOAuthVersion(int oAuthVersion) {
    OAuthVersion = oAuthVersion;
  }

  public boolean isRequireTFSAuthentication() {
    return RequireTFSAuthentication;
  }

  public void setRequireTFSAuthentication(boolean requireTFSAuthentication) {
    RequireTFSAuthentication = requireTFSAuthentication;
  }

  public boolean isRequireTFSDomain() {
    return RequireTFSDomain;
  }

  public void setRequireTFSDomain(boolean requireTFSDomain) {
    RequireTFSDomain = requireTFSDomain;
  }

  @Override
  public int describeContents() {
    // TODO Auto-generated method stub
    return 0;
  }

  public String toString(){
    String temp = "";
    temp+="Id: " + Id + " Name: " + Name + " Host: " + Host + " BaseService: " 
    + BaseService + " Image: " + Image + " Registered: " +(Registered ? "true" : "false") + 
    " RequireOAuth: " + (RequireOAuth ? "true" : "false") + " OAuthVersion: " + OAuthVersion +
    " RequireTFSAuthentication: " + (RequireTFSAuthentication ? "true" : "false") +
    " RequireTFSDomain: " + (RequireTFSDomain ? "true" : "false");
    
    return temp;
    
  }
  
  @Override
  public void writeToParcel(Parcel out, int flags) {
    // TODO Auto-generated method stub
    out.writeInt(Id);
    out.writeString(Name);
    out.writeString(Host);
    out.writeString(BaseService);
    out.writeString(Image);
    out.writeByte((byte) (Registered ? 1 : 0));
    out.writeByte((byte) (RequireOAuth ? 1 : 0));
    out.writeInt(OAuthVersion);
    out.writeByte((byte) (RequireTFSAuthentication ? 1 : 0));
    out.writeByte((byte) (RequireTFSDomain ? 1 : 0));
  }

  public static final Parcelable.Creator<WService> CREATOR = new Parcelable.Creator<WService>() {
    public WService createFromParcel(Parcel in) {
      return new WService(in);
    }

    public WService[] newArray(int size) {
      return new WService[size];
    }
  };
  
  
  /** recreate object from parcel */
  private WService(Parcel in) {
    Id = in.readInt();
    Name = in. readString();
    Host = in. readString();
    BaseService = in. readString();
    Image = in. readString();
    Registered = in.readByte() != 0;
    RequireOAuth = in.readByte() != 0;
    OAuthVersion = in.readInt();
    RequireTFSAuthentication = in.readByte() != 0;
    RequireTFSDomain = in.readByte() != 0;

    }
}




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