Back to project page jogjakota-perizinan.
The source code is released under:
MIT License
If you think the Android project jogjakota-perizinan 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 id.go.jogjakota.perizinan.data; /*from w ww .java2 s . c o m*/ import id.go.jogjakota.perizinan.domain.User; public class Session { private static Session session; private User user; public static Session get() { if (session == null) { session = new Session(); } return session; } public boolean isLoggedIn() { return user != null; } public User getUser() { return user; } public void login(User user) { this.user = user; } public void logout() { user = null; } }