Beispiel #1
0
        public bool ServerRegistration(string Username, string Password)
        {
            string sResponse = RequestToServer("Register?username="******"&Password="******"&Version=1");

            if (sResponse == "")
            {
                return(true);
            }

            return(false);
        }
Beispiel #2
0
        public string GetTextFromClipboard(string Username, string Password, double SequenceNumber)
        {
            string sRequestString = "GetClipboard?username="******"&Password="******"&SequenceNumber=" + SequenceNumber + "&version=1";

            // Timeouts happen
            string sResponse = "";

            try
            {
                sResponse = RequestToServer(sRequestString);
            }
            catch { }


            return(sResponse);
        }
Beispiel #3
0
        public double SendTextToClipboard(string Username, string Password, string sClipboard)
        {
            string sRequestString = "SendClipboard?username="******"&Password="******"&Clipboard=" + Encrypter.base64Encode(sClipboard) + "&Version=1";
            string sResponse      = RequestToServer(sRequestString);

            double SyncID = 0;

            try
            {
                Console.WriteLine("DEBUG: response: " + sResponse);
                SyncID = Convert.ToDouble(sResponse);
            }
            catch
            {
                SyncID = -1;
            }

            return(SyncID);
        }
Beispiel #4
0
        public bool ServerLogin(string Username, string Password)
        {
            string sResponse = RequestToServer("Login?username="******"&Password="******"&Version=1");

            return(Convert.ToBoolean(sResponse));
        }