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)); }
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)); }
// 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)); }
// 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)); }