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

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