Esempio n. 1
0
 public async Task <LogResponse> LogoutAsync(IPAddress ip) => LogResponse.ParseFromUsereg(await PostAsync(InfoUri, string.Format(DropData, ip.ToString())));
Esempio n. 2
0
 public async Task <LogResponse> LoginAsync(IPAddress ip) => LogResponse.ParseFromUsereg(await PostAsync(ConnectUri, new Dictionary <string, string>
 {
     ["user_ip"] = ip.ToString(),
     ["drop"]    = "0"
 }));
Esempio n. 3
0
 public async Task <LogResponse> LogoutAsync() => LogResponse.ParseFromUsereg(await PostAsync(LogUri, LogoutData));
Esempio n. 4
0
 public async Task <LogResponse> LoginAsync() => LogResponse.ParseFromUsereg(await PostAsync(LogUri, new Dictionary <string, string>
 {
     ["action"]          = "login",
     ["user_login_name"] = Username,
     ["user_password"]   = CryptographyHelper.GetMD5(Password)
 }));