public static SocketAPI GetInstance() { if (instance == null) { instance = new SocketAPI(); instance.Connect(); } return(instance); }
//getter and setter //public string ID { get; set; } // constructor public VoiceAPI() { socket = SocketAPI.GetInstance().GetSocket(); }