Back to project page Tasque-for-Android.
The source code is released under:
MIT License
If you think the Android project Tasque-for-Android 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.bustiblelemons.tasque.utilities; //from w w w. j a v a2s . c o m import com.bustiblelemons.tasque.utilities.Values.Database.Task; import it.bova.rtmapi.Priority; public class PriorityParser { public static Priority parse(int priority) { switch (priority) { case Task.Priority.High: return Priority.HIGH; case Task.Priority.Medium: return Priority.MEDIUM; case Task.Priority.Low: return Priority.LOW; default: return Priority.NONE; } } }