I\'m having trouble declaring an enum. What I\'m trying to create is an enum for a \'DownloadType\', where there are 3 download types (AUDIO, VIDEO, AUDIO_AND_VIDEO).
You can try this code .
private enum DownloadType { AUDIO , VIDEO , AUDIO_AND_VIDEO ; }
You can use this enumeration as like this : DownloadType.AUDIO.ordinal(). Hope this code snippet will help you .
DownloadType.AUDIO.ordinal()