예제 #1
0
        public static void GetFriendList()
        {
            var args = new RAHttpRequest.PostArgs();

            args.Clear();
            args.Add(new KeyValuePair<string, string>("u", RACore.LocalUser.User));
            args.Add(new KeyValuePair<string, string>("t", RACore.LocalUser.Token));

            HttpRequests.Enqueue(new RAHttpRequest(WebRequest.RequestFriendList, args));
        }
예제 #2
0
        public static void GetFriendList()
        {
            var args = new RAHttpRequest.PostArgs();

            args.Clear();
            args.Add(new KeyValuePair <string, string>("u", RACore.LocalUser.User));
            args.Add(new KeyValuePair <string, string>("t", RACore.LocalUser.Token));

            HttpRequests.Enqueue(new RAHttpRequest(WebRequest.RequestFriendList, args));
        }
예제 #3
0
        //  Dirty args!
        public static void PerformBackgroundLogin(string user, string pass)
        {
            RACore.LocalUser = new RAUser( user );

            var args = new RAHttpRequest.PostArgs();

            args.Clear();
            args.Add(new KeyValuePair<string, string>("u", user));
            args.Add(new KeyValuePair<string, string>("p", pass));

            HttpRequests.Enqueue(new RAHttpRequest(WebRequest.RequestLogin, args));
        }
예제 #4
0
        //  Dirty args!
        public static void PerformBackgroundLogin(string user, string pass)
        {
            RACore.LocalUser = new RAUser(user);

            var args = new RAHttpRequest.PostArgs();

            args.Clear();
            args.Add(new KeyValuePair <string, string>("u", user));
            args.Add(new KeyValuePair <string, string>("p", pass));

            HttpRequests.Enqueue(new RAHttpRequest(WebRequest.RequestLogin, args));
        }