Skip to content

Commit

Permalink
fix code
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpyfr committed Apr 30, 2013
1 parent 4886159 commit fde93e4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 25 deletions.
30 changes: 6 additions & 24 deletions WygwamToolkit.Common/Managers/AStorageManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,36 +101,18 @@ public async Task<bool> ClearDataAsync(string path)
#endregion

#region virtual
protected virtual async Task<bool> SavePlatformAsync(string key, object data)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<bool> SavePlatformAsync(string key, object data);

protected virtual async Task<T> LoadPlatformAsync<T>(string key)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<T> LoadPlatformAsync<T>(string key);

protected virtual async Task<bool> ClearPlatformAsync(string key)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<bool> ClearPlatformAsync(string key);


protected virtual async Task<bool> SaveDataPlatformAsync(string path, object data)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<bool> SaveDataPlatformAsync(string path, object data);

protected virtual async Task<T> LoadDataPlatformAsync<T>(string path)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<T> LoadDataPlatformAsync<T>(string path);

protected virtual async Task<bool> ClearDataPlatformAsync(string path)
{
throw new PlatformNotSupportedException("You need to override the method in the platform");
}
protected abstract Task<bool> ClearDataPlatformAsync(string path);
#endregion
}
}
2 changes: 1 addition & 1 deletion nuspec/Readme.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Wygwam Toolkit v0.1.6
Wygwam Toolkit v0.1.7

http://www.wygwam.com

0 comments on commit fde93e4

Please sign in to comment.