Back to project page WhatsUp.
The source code is released under:
GNU General Public License
If you think the Android project WhatsUp listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package nu.placebo.whatsup.model; //from w ww . jav a2 s . c om public class SessionInfo { private String sessionName; private String sessionId; /** * Contains the session data required to authenticate after a successful log * in. */ public SessionInfo(String sessionName, String sessionId) { this.sessionName = sessionName; this.sessionId = sessionId; } public String getSessionName() { return this.sessionName; } public String getSessionId() { return this.sessionId; } public boolean equals(Object o) { if (o instanceof SessionInfo) { SessionInfo si = (SessionInfo) o; return this.getSessionId().equals(si.getSessionId()) && this.getSessionName().equals(si.getSessionName()); } else { return false; } } public int hashCode() { return sessionId.hashCode() + sessionName.hashCode(); } }