public static SocketAPI GetInstance()
 {
     if (instance == null)
     {
         instance = new SocketAPI();
         instance.Connect();
     }
     return(instance);
 }
Esempio n. 2
0
        //getter and setter
        //public string ID { get; set; }

        // constructor
        public VoiceAPI()
        {
            socket = SocketAPI.GetInstance().GetSocket();
        }