Back to project page Joetz-Android-V2.
The source code is released under:
GNU General Public License
If you think the Android project Joetz-Android-V2 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 com.example.jens.myapplication.domain; /* w w w . j a v a 2 s .c o m*/ import android.support.annotation.StringRes; import com.example.jens.myapplication.R; /** * Created by Sam on 8/12/2014. */ public enum BookingStatus { PAID(R.string.paid), CANCELLED(R.string.cancelled), IN_PROCESS(R.string.in_process); @StringRes private int stringResId; private BookingStatus(@StringRes int stringResId){ this.stringResId = stringResId; } /** * Get the string resource id associated with the status * @return String resource */ public int getStringResId() { return stringResId; } }