WifiModel.cs 472 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace ShareWifi.Model
  7. {
  8. class WifiModel
  9. {
  10. string ssid;
  11. string pwd;
  12. public string Ssid { get => ssid; set => ssid = value; }
  13. public string Pwd { get => pwd; set => pwd = value; }
  14. public string getWifi()
  15. {
  16. return "WIFI:T:WPA;P:\"" + Pwd + "\";S:" + Ssid + ";";
  17. }
  18. }
  19. }