package com.hyphenate.easeui.model;

/**
 * Created by wei on 2016/10/10.
 */

public interface EaseUser{

    /**
     * get the user hyphenate id
     * @return
     */
    String getEaseUsername();

    /**
     * avatar url of the user, also can be drawable id that need convert to String
     * @return
     */
    String getEaseAvatar();

    /**
     * get the user nick
     * @return
     */
    String getEaseNickname();


    ///**
    // * initial letter for nickname
    // */
    //protected String initialLetter;
    ///**
    // * avatar url of the user
    // */
    //protected String avatar;
    //
    //public EaseUser(String username) {
    //    this.username = username;
    //}
    //
    //public String getInitialLetter() {
    //    if (initialLetter == null) {
    //        EaseCommonUtils.setUserInitialLetter(this);
    //    }
    //    return initialLetter;
    //}
    //
    //public void setInitialLetter(String initialLetter) {
    //    this.initialLetter = initialLetter;
    //}
    //
    //public String getAvatar() {
    //    return avatar;
    //}
    //
    //public void setAvatar(String avatar) {
    //    this.avatar = avatar;
    //}
    //
    //@Override public int hashCode() {
    //    return 17 * getUsername().hashCode();
    //}
    //
    //@Override public boolean equals(Object o) {
    //    if (o == null || !(o instanceof EaseUser)) {
    //        return false;
    //    }
    //    return getUsername().equals(((EaseUser) o).getUsername());
    //}
    //
    //@Override public String toString() {
    //    return nick == null ? username : nick;
    //}
}

@@ -429,1199 +429,6 @@
 );%0A%0A
-%0A    ///**%0A    // * initial letter for nickname%0A    // */%0A    //protected String initialLetter;%0A    ///**%0A    // * avatar url of the user%0A    // */%0A    //protected String avatar;%0A    //%0A    //public EaseUser(String username) %7B%0A    //    this.username = username;%0A    //%7D%0A    //%0A    //public String getInitialLetter() %7B%0A    //    if (initialLetter == null) %7B%0A    //        EaseCommonUtils.setUserInitialLetter(this);%0A    //    %7D%0A    //    return initialLetter;%0A    //%7D%0A    //%0A    //public void setInitialLetter(String initialLetter) %7B%0A    //    this.initialLetter = initialLetter;%0A    //%7D%0A    //%0A    //public String getAvatar() %7B%0A    //    return avatar;%0A    //%7D%0A    //%0A    //public void setAvatar(String avatar) %7B%0A    //    this.avatar = avatar;%0A    //%7D%0A    //%0A    //@Override public int hashCode() %7B%0A    //    return 17 * getUsername().hashCode();%0A    //%7D%0A    //%0A    //@Override public boolean equals(Object o) %7B%0A    //    if (o == null %7C%7C !(o instanceof EaseUser)) %7B%0A    //        return false;%0A    //    %7D%0A    //    return getUsername().equals(((EaseUser) o).getUsername());%0A    //%7D%0A    //%0A    //@Override public String toString() %7B%0A    //    return nick == null ? username : nick;%0A    //%7D%0A
 %7D%0A

remove unuse code