DataBlock.cs 839 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. 
  2. namespace TEAMModelOS.SDK
  3. {
  4. public class DataBlock
  5. {
  6. #region Private Properties
  7. public int CityID
  8. {
  9. get;
  10. private set;
  11. }
  12. public string Region
  13. {
  14. get;
  15. private set;
  16. }
  17. public int DataPtr
  18. {
  19. get;
  20. private set;
  21. }
  22. #endregion
  23. #region Constructor
  24. public DataBlock(int city_id, string region, int dataPtr = 0)
  25. {
  26. CityID = city_id;
  27. Region = region;
  28. DataPtr = dataPtr;
  29. }
  30. public DataBlock(int city_id, string region):this(city_id,region,0)
  31. {
  32. }
  33. #endregion
  34. public override string ToString()
  35. {
  36. return $"{CityID}|{Region}|{DataPtr}";
  37. }
  38. }
  39. }