DeviceInfoModel.cs 579 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Shaker.Models
  7. {
  8. public class DeviceInfoModel : BaseModel
  9. {
  10. public string DeviceName = string.Empty;
  11. public string SN = string.Empty;
  12. public string IP = "127.0.0.1";
  13. public int Port = 5555;
  14. public override string ToString()
  15. {
  16. return $"{DeviceName}[{IP}:{Port}]-{SN}";
  17. }
  18. public override object Clone()
  19. {
  20. return this.CloneBase();
  21. }
  22. }
  23. }