Slider.cs 678 B

12345678910111213141516171819202122232425262728293031
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace BBIWARG.API
  7. {
  8. public class Slider
  9. {
  10. public string Type { get; set; }
  11. public int Pos { get; set; }
  12. public int Max { get; set; }
  13. public int Cur { get; set; }
  14. public static Slider instance;
  15. public static Slider getInctance()
  16. {
  17. if (instance == null)
  18. instance = new Slider();
  19. return instance;
  20. }
  21. private Slider()
  22. {
  23. Type = "slider";
  24. Pos = 0;
  25. Max = 0;
  26. Cur = 0;
  27. }
  28. }
  29. }