Back to project page Visu.
The source code is released under:
Apache License
If you think the Android project Visu 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.ufavaloro.android.visu.storage.googledrive; /*w w w. ja va 2s . c o m*/ public enum GoogleDriveManagerMessage { GOOGLE_DRIVE_FILE_OPEN(1), GOOGLE_DRIVE_CONNECTED(2), GOOGLE_DRIVE_SUSPENDED(3), GOOGLE_DRIVE_DISCONNECTED(4), GOOGLE_DRIVE_CONNECTION_FAILED(5); private final int value; private GoogleDriveManagerMessage(int value){ this.value=value; } public static GoogleDriveManagerMessage values(int what) { switch(what){ case 1: return GOOGLE_DRIVE_FILE_OPEN; case 2: return GOOGLE_DRIVE_CONNECTED; case 3: return GOOGLE_DRIVE_SUSPENDED; case 4: return GOOGLE_DRIVE_DISCONNECTED; case 5: return GOOGLE_DRIVE_CONNECTION_FAILED; default: return GOOGLE_DRIVE_DISCONNECTED; } } public int getValue(){return value;} }