aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Server/MemoManager.cs
diff options
context:
space:
mode:
authorMichael VanOverbeek <[email protected]>2017-02-15 21:30:58 +0000
committerMichael VanOverbeek <[email protected]>2017-02-15 21:31:03 +0000
commit91f97a65b2c6d1fad3a211a6739a49d9908f69a2 (patch)
treeae91161012ad62f8d35377369557bff14cd18718 /ShiftOS.Server/MemoManager.cs
parent9729d2ba5998351849b0fe7e755a3176de655bab (diff)
downloadshiftos_thereturn-91f97a65b2c6d1fad3a211a6739a49d9908f69a2.tar.gz
shiftos_thereturn-91f97a65b2c6d1fad3a211a6739a49d9908f69a2.tar.bz2
shiftos_thereturn-91f97a65b2c6d1fad3a211a6739a49d9908f69a2.zip
whoa mud refactoring
Diffstat (limited to 'ShiftOS.Server/MemoManager.cs')
-rw-r--r--ShiftOS.Server/MemoManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/ShiftOS.Server/MemoManager.cs b/ShiftOS.Server/MemoManager.cs
index ed0a2e9..7251dc8 100644
--- a/ShiftOS.Server/MemoManager.cs
+++ b/ShiftOS.Server/MemoManager.cs
@@ -13,7 +13,7 @@ namespace ShiftOS.Server
{
public static class MemoManager
{
- [MudRequest("get_memos_for_user")]
+ [MudRequest("get_memos_for_user", typeof(Dictionary<string, object>))]
public static void GetMemosForUser(string guid, object contents)
{
var args = contents as Dictionary<string, object>;
@@ -44,10 +44,10 @@ namespace ShiftOS.Server
}
- [MudRequest("mud_postmemo")]
+ [MudRequest("mud_postmemo", typeof(MUDMemo))]
public static void PostMemo(string guid, object contents)
{
- MUDMemo memo = JsonConvert.DeserializeObject<MUDMemo>(contents as string);
+ MUDMemo memo = contents as MUDMemo;
List<MUDMemo> memos = new List<MUDMemo>();
if (File.Exists("memos.json"))