diff --git a/src/WFClassic.Web/Controllers/GuildController.cs b/src/WFClassic.Web/Controllers/GuildController.cs
index 0990da9..c0594f5 100644
--- a/src/WFClassic.Web/Controllers/GuildController.cs
+++ b/src/WFClassic.Web/Controllers/GuildController.cs
@@ -9,6 +9,8 @@ namespace WFClassic.Web.Controllers
[Route("/api/createGuild.php")]
public ActionResult CreateGuild([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In CreateGuild");
+
return Ok();
}
@@ -16,13 +18,17 @@ namespace WFClassic.Web.Controllers
[Route("/api/removeFromGuild.php")]
public ActionResult RemoveFromGuild([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In removeFromGuild");
+
return new JsonResult("{}");
}
- [HttpPost]
+ [HttpGet]
[Route("/api/addToGuild.php")]
public ActionResult AddToGuild([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ //GET /api/addToGuild.php?accountId=c64c1e01-34d6-4311-ae40-7baa5eba3016&nonce=1361696396955615402&steamId=0&guildId=522656733f9a5b1718f1b5ab&userName=beer
+ Console.WriteLine("In AddToGuild");
return new JsonResult("{}");
}
@@ -30,6 +36,8 @@ namespace WFClassic.Web.Controllers
[Route("/api/changeGuildRank.php")]
public ActionResult ChangeGuildRank([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In ChangeGuildRank");
+
return new JsonResult("{}");
}
@@ -37,6 +45,8 @@ namespace WFClassic.Web.Controllers
[Route("/api/confirmGuildInvitation.php")]
public ActionResult ConfirmGuildInvitation([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In ConfirmGuildInvitation");
+
return new JsonResult("{}");
}
@@ -44,22 +54,58 @@ namespace WFClassic.Web.Controllers
[Route("/api/getGuild.php")]
public string GetGuild([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In GetGuild");
+
var cat = @"
{
""Name"" :""cats"",
- ""_id"": {
- ""$id"": ""522656733f9a5b1718f1b5ab""
- },
-""MemberIds"": []
+""_id"": {
+ ""$id"": ""522656733f9a5b1718f1b5ab""
+},
+""Members"": [
+ {
+ ""_id"": {
+ ""$id"": ""4FAD6BF1-5BB5-4C8F-9078-92A2827E221D""
+ },
+ ""DisplayName"" :""beer"",
+ ""Status"": 0,
+ ""ActiveAvatarImageType"" :""/Lotus/Types/StoreItems/AvatarImages/AvatarImagePack1"",
+ ""Rank"" : 2
+ },
+ {
+ ""_id"": {
+ ""$id"": ""C64C1E01-34D6-4311-AE40-7BAA5EBA3016""
+ },
+ ""DisplayName"" :""mekael"",
+ ""Status"": 0,
+ ""ActiveAvatarImageType"" :""/Lotus/Types/StoreItems/AvatarImages/AvatarImagePack1"",
+ ""Rank"" : 1
+ },
+
+ ]
}
";
-
+ cat = "{}";
return cat;
}
}
}
+/*
+ accountId: Types.ObjectId;
+ guildId: Types.ObjectId;
+ status: number;
+ rank: number;
+ RequestMsg?: string;
+ RequestExpiry?: Date;
+ RegularCreditsContributed?: number;
+ PremiumCreditsContributed?: number;
+ MiscItemsContributed?: IMiscItem[];
+ ShipDecorationsContributed?: ITypeCount[];
+ */
+
+
//Ranks
//Members
/*
diff --git a/src/WFClassic.Web/Controllers/MessageController.cs b/src/WFClassic.Web/Controllers/MessageController.cs
index 41271d6..58b7875 100644
--- a/src/WFClassic.Web/Controllers/MessageController.cs
+++ b/src/WFClassic.Web/Controllers/MessageController.cs
@@ -11,14 +11,16 @@ namespace WFClassic.Web.Controllers
{
var response = @"{
""Messages"": [
+
{
""SenderId"": {
- ""$id"":""sdfs""
+ ""$id"":""4FAD6BF1-5BB5-4C8F-9078-92A2827E221D""
},
- ""Content"":""sdfsd""
+ ""Content"":""asdfhjasldfkjlkj""
}
]
}";
+ response = "{}";
return response;
}
@@ -26,6 +28,9 @@ namespace WFClassic.Web.Controllers
[Route("/api/sendMessage.php")]
public ActionResult SendMessage([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+
+ Console.WriteLine("in SendMessage");
+
return new JsonResult("{}");
}
}
diff --git a/src/WFClassic.Web/Controllers/UniverseController.cs b/src/WFClassic.Web/Controllers/UniverseController.cs
index f4e2fe0..0daf8ab 100644
--- a/src/WFClassic.Web/Controllers/UniverseController.cs
+++ b/src/WFClassic.Web/Controllers/UniverseController.cs
@@ -181,6 +181,7 @@ namespace WFClassic.Web.Controllers
[Route("/api/goals.php")]
public ActionResult Goals([FromQuery] Guid accountId, [FromQuery] long nonce)
{
+ Console.WriteLine("In Goals");
return new JsonResult("{}");
}
}
diff --git a/src/WFClassic.Web/WFClassic.Web.csproj b/src/WFClassic.Web/WFClassic.Web.csproj
index 8f2a55b..1361107 100644
--- a/src/WFClassic.Web/WFClassic.Web.csproj
+++ b/src/WFClassic.Web/WFClassic.Web.csproj
@@ -8,17 +8,17 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
+
diff --git a/src/WFClassic.Web/app.db b/src/WFClassic.Web/app.db
index c49b8ee..c848808 100644
Binary files a/src/WFClassic.Web/app.db and b/src/WFClassic.Web/app.db differ
diff --git a/src/WFClassic.Web/app.db-shm b/src/WFClassic.Web/app.db-shm
deleted file mode 100644
index 6827425..0000000
Binary files a/src/WFClassic.Web/app.db-shm and /dev/null differ
diff --git a/src/WFClassic.Web/app.db-wal b/src/WFClassic.Web/app.db-wal
deleted file mode 100644
index cba221b..0000000
Binary files a/src/WFClassic.Web/app.db-wal and /dev/null differ