/// <summary> /// Attempts to validate a user's login information. /// </summary> /// <param name="username">The username to log in with.</param> /// <param name="password">The password (in plain-text) to log in with.</param> /// <returns>The server's response. Use the response's Successful property to determine if the information is valid.</returns> public static SignInResponse AttemptSignIn(string username, string password) { var request = new SignInRequest { Username = username, PasswordMd5 = Md5Crypto.ComputeHashToString(password).ToLower() }; return(AssemblyServer.SendRequest <SignInRequest, SignInResponse>(request)); }
/// <summary> /// Retrieves information about available updates. /// </summary> /// <returns>The update information returned by the server, or null if the request failed.</returns> public static UpdateInfo GetUpdateInfo() { var updateCommand = new ServerRequest("update_asm"); return(AssemblyServer.SendRequest <ServerRequest, UpdateInfo>(updateCommand)); }