Guest User

Untitled

a guest
Apr 20th, 2018
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. public class LastFmAutoComplete
  2. {
  3. public string Artist { get; set; }
  4. public string Album { get; set; }
  5. public string Track { get; set; }
  6. public TimeSpan Duration { get; set; }
  7. public string Id { get; set; }
  8. public string Image { get; set; }
  9. public string Reach { get; set; }
  10. public string Resid { get; set; }
  11. public AutoCompleteType Restype { get; set; }
  12. public string Weight { get; set; }
  13.  
  14. public static AutoCompleteType ParseAutoCompleteType(string input)
  15. {
  16. var inputInt = int.Parse(input);
  17. return (AutoCompleteType)inputInt;
  18. }
  19.  
  20. public enum AutoCompleteType
  21. {
  22. Artist = 6,
  23. Album = 8,
  24. Group = 20,
  25. Tag = 32,
  26. Track = 9,
  27. Label = 10,
  28. Event = 29
  29. }
  30. }
Add Comment
Please, Sign In to add comment