Skip to content

Commit

Permalink
user rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Karl Seguin committed Jan 15, 2012
1 parent 1792375 commit 92bf80f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Mogade.WindowsPhone/IMogadeClient.cs
Expand Up @@ -200,6 +200,11 @@ public interface IMogadeClient
/// </summary>
void GetAssets(Action<Response<IList<Asset>>> callback);

/// <summary>
/// renames a user
/// </summary>
void Rename(string currentUserName, string newUserName, Action<Response<bool>> callback);

/// <summary>
/// Gets the unique identifier mogade is using for this device/user
/// </summary>
Expand Down
5 changes: 5 additions & 0 deletions Mogade.WindowsPhone/MogadeClient.cs
Expand Up @@ -140,6 +140,11 @@ public void GetAssets(Action<Response<IList<Asset>>> callback)
_driver.GetAssets(callback);
}

public void Rename(string currentUserName, string newUserName, Action<Response<bool>> callback)
{
_driver.Rename(GetUniqueIdentifier(), currentUserName, newUserName, callback);
}

public string GetUniqueIdentifier()
{
return _storage.GetUniqueIdentifier();
Expand Down
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>mogade-windowsphone</id>
<version>0.6</version>
<version>0.7</version>
<authors>Karl Seguin</authors>
<owners>Karl Seguin</owners>
<projectUrl>http://mogade.com</projectUrl>
Expand All @@ -11,10 +11,10 @@
<description>Windows Phone Platform Driver for Mogade</description>
<tags>mogade game library leaderboard achievments wp7 windowsphone phone</tags>
<dependencies>
<dependency id="mogade-csharp" version="0.6" />
<dependency id="mogade-csharp" version="0.7" />
</dependencies>
</metadata>
<files>
<file src="..\Mogade.WindowsPhone\bin\Release\Mogade.WindowsPhone.dll" target="lib"/>
<file src="Mogade.WindowsPhone\bin\Release\Mogade.WindowsPhone.dll" target="lib"/>
</files>
</package>
</package>
Binary file modified references/Mogade.WindowsPhone.Core.dll
Binary file not shown.
Binary file modified references/Mogade.WindowsPhone.Core.pdb
Binary file not shown.

0 comments on commit 92bf80f

Please sign in to comment.