Beispiel #1
0
        protected void Publish(string uid)
        {
            string url = URL + "/publish?a=" + _address + "&f=" + _fingerprint +
                         "&u=" + uid;

            SocialUtils.Request(url);
        }
Beispiel #2
0
        public static string GetInfo()
        {
            Dictionary <string, string> parameters =
                new Dictionary <string, string>();

            parameters["m"] = "getstate";
            return(Print(SocialUtils.Request(_url, parameters)));
        }
Beispiel #3
0
        public static string Logout(string network)
        {
            Dictionary <string, string> parameters =
                new Dictionary <string, string>();

            parameters["m"] = "logout";
            parameters["n"] = network;
            return(Print(SocialUtils.Request(_url, parameters)));
        }
Beispiel #4
0
        public static string Unblock(string address)
        {
            Dictionary <string, string> parameters =
                new Dictionary <string, string>();

            parameters["m"] = "unblock";
            parameters["a"] = address;
            return(Print(SocialUtils.Request(_url, parameters)));
        }
Beispiel #5
0
        public static string Login(string network, string user, string pass)
        {
            Dictionary <string, string> parameters =
                new Dictionary <string, string>();

            parameters["m"] = "login";
            parameters["n"] = network;
            parameters["u"] = user;
            parameters["p"] = pass;
            return(Print(SocialUtils.Request(_url, parameters)));
        }
Beispiel #6
0
        protected void Retreive()
        {
            string url    = URL + "/";
            string result = SocialUtils.Request(url);

            int counter = 0;

            string[] lines = result.Split('\n');
            foreach (string line in lines)
            {
                if (line.Length < 10)
                {
                    continue;
                }
                string[] parts = line.Split(' ');
                _fingerprints = _fingerprints.InsertIntoNew(parts[0], parts[1]);
                _addresses    = _addresses.InsertIntoNew(parts[0], parts[2]);
                counter++;
            }

            _message = " >> Found " + counter + " test server(s)";
        }