package com.music.ting.model;

/**
 * Created by Jun on 2015/5/11.
 * 用户信息实体类
 */
public class UserInfo {
    /**
     * 用户Id
     */
    private int id;
    /**
     * 用户名
     */
    private String name;
    /**
     * 用户Email
     */
    private String email;
    /**
     * 个性标签
     */
    private String Bio;
    /**
     * 用户头像
     */
    private Avatar avatar;

    public class Avatar{
        /**
         * 用户头像URL
         */
        public String url;

        public String geturl() {
            return url;
        }

        public void seturl(String url) {
            this.url = url;
        }
    }

    public int getId() {
        return id;
    }

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

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

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

    public String getBio() {
        return Bio;
    }

    public void setBio(String bio) {
        Bio = bio;
    }

    public Avatar getAvatar() {
        return avatar;
    }

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

    @Override
    public String toString() {
        return "UserInfo{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", Bio='" + Bio + '\'' +
                ", avatar=" + avatar +
                '}';
    }
}

@@ -26,16 +26,76 @@
 del;%0D%0A%0D%0A
+import android.os.Parcel;%0D%0Aimport android.os.Parcelable;%0D%0A%0D%0A
 /**%0D%0A * 
@@ -163,16 +163,38 @@
 serInfo 
+implements Parcelable 
 %7B%0D%0A    /
@@ -407,17 +407,17 @@
  String 
-B
+b
 io;%0D%0A   
@@ -481,24 +481,31 @@
 %0A    public 
+static 
 class Avatar
@@ -504,16 +504,39 @@
 s Avatar
+ implements Parcelable 
 %7B%0D%0A     
@@ -759,16 +759,699 @@
       %7D%0D
+%0A%0D%0A        @Override%0D%0A        public int describeContents() %7B%0D%0A            return 0;%0D%0A        %7D%0D%0A%0D%0A        @Override%0D%0A        public void writeToParcel(Parcel dest, int flags) %7B%0D%0A            dest.writeString(this.url);%0D%0A        %7D%0D%0A%0D%0A        public Avatar() %7B%0D%0A        %7D%0D%0A%0D%0A        private Avatar(Parcel in) %7B%0D%0A            this.url = in.readString();%0D%0A        %7D%0D%0A%0D%0A        public static final Creator%3CAvatar%3E CREATOR = new Creator%3CAvatar%3E() %7B%0D%0A            public Avatar createFromParcel(Parcel source) %7B%0D%0A                return new Avatar(source);%0D%0A            %7D%0D%0A%0D%0A            public Avatar%5B%5D newArray(int size) %7B%0D%0A                return new Avatar%5Bsize%5D;%0D%0A            %7D%0D%0A        %7D;%0D
 %0A    %7D%0D%0A
@@ -1899,17 +1899,17 @@
  return 
-B
+b
 io;%0D%0A   
@@ -1960,17 +1960,22 @@
         
-B
+this.b
 io = bio
@@ -2361,17 +2361,17 @@
 io='%22 + 
-B
+b
 io + '%5C'
@@ -2437,18 +2437,999 @@
   '%7D';%0D%0A
-
     %7D%0D
+%0A%0D%0A    @Override%0D%0A    public int describeContents() %7B%0D%0A        return 0;%0D%0A    %7D%0D%0A%0D%0A    @Override%0D%0A    public void writeToParcel(Parcel dest, int flags) %7B%0D%0A        dest.writeInt(this.id);%0D%0A        dest.writeString(this.name);%0D%0A        dest.writeString(this.email);%0D%0A        dest.writeString(this.bio);%0D%0A        dest.writeParcelable(this.avatar, flags);%0D%0A    %7D%0D%0A%0D%0A    public UserInfo() %7B%0D%0A    %7D%0D%0A%0D%0A    private UserInfo(Parcel in) %7B%0D%0A        this.id = in.readInt();%0D%0A        this.name = in.readString();%0D%0A        this.email = in.readString();%0D%0A        this.bio = in.readString();%0D%0A        this.avatar = in.readParcelable(Avatar.class.getClassLoader());%0D%0A    %7D%0D%0A%0D%0A    public static final Parcelable.Creator%3CUserInfo%3E CREATOR = new Parcelable.Creator%3CUserInfo%3E() %7B%0D%0A        public UserInfo createFromParcel(Parcel source) %7B%0D%0A            return new UserInfo(source);%0D%0A        %7D%0D%0A%0D%0A        public UserInfo%5B%5D newArray(int size) %7B%0D%0A            return new UserInfo%5Bsize%5D;%0D%0A        %7D%0D%0A    %7D;%0D
 %0A%7D%0D%0A

Update UserInfo.java