You can now save profiles to a database. (Zomg!)

This commit is contained in:
Adam Frisby
2007-05-05 23:04:47 +00:00
parent 51da80a850
commit 6d6117e019
6 changed files with 123 additions and 3 deletions

View File

@@ -75,6 +75,18 @@ namespace OpenGrid.Framework.Data.MySQL
return row;
}
public DataResponse AddProfile(SimProfileData profile)
{
if (database.insertRow(profile))
{
return DataResponse.RESPONSE_OK;
}
else
{
return DataResponse.RESPONSE_ERROR;
}
}
/// <summary>
/// DEPRECIATED. Attempts to authenticate a region by comparing a shared secret.
/// </summary>