Android Open Source - socialcde4android W User






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   www.ja  v  a 2s. co  m
import android.os.Parcel;
import android.os.Parcelable;

public class WUser implements Parcelable{

  // / <summary>
  // / Identifier of the user.
  // / </summary>
  public int Id;

  // / <summary>
  // / Identification name of the user.
  // / </summary>
  public String Username;

  // / <summary>
  // / Email address of the user.
  // / </summary>
  public String Email;

  // / <summary>
  // / Image avatar of the user.
  // / </summary>
  public String Avatar;

  // / <summary>
  // / Number of statuses written by the user stored in the database.
  // / </summary>
  public int Statuses;

  // / <summary>
  // / Number of followings of the user.
  // / </summary>
  public int Followings;

  // / <summary>
  // / Number of followers of the user.
  // / </summary>
  public int Followers;

  // / <summary>
  // / True if current user follow this user, false otherwise.
  // / </summary>
  public boolean Followed;

  public int getId() {
    return Id;
  }

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

  public String getUsername() {
    return Username;
  }

  public void setUsername(String username) {
    this.Username = username;
  }

  public String getEmail() {
    return Email;
  }

  public void setEmail(String email) {
    this.Email = email;
  }

  public String getAvatar() {
    return Avatar;
  }

  public void setAvatar(String avatar) {
    this.Avatar = avatar;
  }

  public int getStatuses() {
    return Statuses;
  }

  public void setStatuses(int statuses) {
    this.Statuses = statuses;
  }

  public int getFollowings() {
    return Followings;
  }

  public void setFollowings(int followings) {
    this.Followings = followings;
  }

  public int getFollowers() {
    return Followers;
  }

  public void setFollowers(int followers) {
    this.Followers = followers;
  }

  public boolean isFollowed() {
    return Followed;
  }

  public void setFollowed(boolean followed) {
    this.Followed = followed;
  }

  @Override
  public int describeContents() {
    // TODO Auto-generated method stub
    return 0;
  }
  
  public String toString(){
    String temp = "";
    temp+="Id: " + Id + " Username: " + Username + " Email: " + Email + " Avatar: " 
    + Avatar + " Statuses: " + Statuses + " Followings: " + Followings + 
    " Followers: " + Followers  +
    " Followed: " + (Followed ? "true" : "false");
    
    return temp;
    
  }
  

  @Override
  public void writeToParcel(Parcel out, int flags) {
    // TODO Auto-generated method stub
    out.writeInt(Id);
    out.writeString(Username);
    out.writeString(Email);
    out.writeString(Avatar);
    out.writeInt(Statuses);
    out.writeInt(Followings);
    out.writeInt(Followers);
    out.writeByte((byte) (Followed ? 1 : 0));
  }

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

    public WUser[] newArray(int size) {
      return new WUser[size];
    }
  };
  
  
  /** recreate object from parcel */
  private WUser(Parcel in) {


    Id = in.readInt();
    Username = in.readString();
    Email = in.readString();
    Avatar = in.readString();
    Statuses = in.readInt();
    Followings = in.readInt();
    Followers = in.readInt();
    Followed = in.readByte() != 0;

    }

  public WUser() {
    // TODO Auto-generated constructor stub
  }
}




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