Exemple #1
0
 internal static void DoAuthentication(string Username, string Password)
 {
     AntVaultClient.BytesReceived += MainClientWorker.AntVaultClient_BytesReceived;
     AntVaultClient.StartClient("AntVault.ddns.net", 8910);
     CurrentUser = Username;
     try
     {
         AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/NewConnection -U " + Username + " -P " + Password + "."));//NewConnection -U Username -P Password.
     }
     catch
     {
         MessageBox.Show("Server is offline, therefore the authentication process could not take place, please try again later!", "Error! Server offline!", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
Exemple #2
0
 internal static void RequestStatus(SimpleSocketClient AntVaultClient, string CurrentUser)
 {
     AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/RequestStatus -U " + CurrentUser + "."));//RequestStatus -U Username.
 }
Exemple #3
0
 internal static void RequestProfilePictures(SimpleSocketClient AntVaultClient, string CurrentUser)//RequestProfilePictures -U Username.
 {
     AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/RequestProfilePictures -U " + CurrentUser + "."));
 }
Exemple #4
0
 internal static void UpdateUsername(SimpleSocketClient AntVaultClient, string CurrentUsername, string NewUsername)//UpdateUsername -U OldUsername -Content NewUsername.
 {
     AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/UpdateUsername -U " + CurrentUsername + " -Content " + NewUsername + "."));
 }
Exemple #5
0
 internal static void UpdatePassword(SimpleSocketClient AntVaultClient, string OldPassword, string NewPassword)//UpdatePassword -P OldPassword -Content NewPassword.
 {
     AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/UpdatePassword -P " + OldPassword + " -Content " + NewPassword + "."));
 }
Exemple #6
0
 internal static void UpdateProfilePicture(SimpleSocketClient AntVaultClient, byte[] NewProfilePictureBytes)//UpdateProfilePicture //byte[] //EndUpdateProfilePicture
 {
     AntVaultClient.SendBytes(AuxiliaryClientWorker.MessageByte("/UpdateProfilePicture"));
     Thread.Sleep(500);
     AntVaultClient.SendBytes(NewProfilePictureBytes);
 }