Beispiel #1
0
        public JObject Paste()
        {
            // Paste
            JObject response = PasteTube.MakeRequest("/Paste?userid=" + userid);

            return(response);
        }
Beispiel #2
0
        public JObject Copy(string data)
        {
            // Copy
            JObject response = PasteTube.MakeRequest("/Copy?userid=" + userid + "&data=" + data);

            return(response);
        }
Beispiel #3
0
        public JObject GetConnectedDevices()
        {
            // GetConnectedDevices
            JObject response = PasteTube.MakeRequest("/GetConnectedDevices?userid=" + userid);

            return(response);
        }
Beispiel #4
0
        public static string CreateUser()
        {
            // Create User first
            JObject response    = PasteTube.MakeRequest("/CreateUser");
            string  userid_temp = response["userid"].ToString();

            return(userid_temp);
        }
Beispiel #5
0
        public PasteTube(string p_userid)
        {
            userid = p_userid;

            // Connect
            JObject response = PasteTube.MakeRequest("/Connect?mac=xyz&userid=" + userid);

            // MessageBox.Show(userid, "test", MessageBoxButtons.YesNo);
        }