Skip to content

Commit

Permalink
More market stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
emist committed Oct 15, 2011
1 parent 907be72 commit 8826647
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Eryan.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<Compile Include="IPC\Communicator.cs" />
<Compile Include="Responses\ItemResponse.cs" />
<Compile Include="Responses\MarketListResponse.cs" />
<Compile Include="Responses\MarketSearchResponse.cs" />
<Compile Include="Responses\MenuResponse.cs" />
<Compile Include="Responses\StringGroupResponse.cs" />
<Compile Include="Responses\StringResposne.cs" />
Expand Down Expand Up @@ -221,6 +222,7 @@
<Compile Include="Wrappers\InterfaceEntry.cs" />
<Compile Include="Wrappers\Item.cs" />
<Compile Include="Wrappers\MarketEntry.cs" />
<Compile Include="Wrappers\MarketSearchEntry.cs" />
<Compile Include="Wrappers\MenuEntry.cs" />
<Compile Include="Wrappers\OverViewEntry.cs" />
<Compile Include="Wrappers\SelectedItem.cs" />
Expand Down
Binary file modified Eryan.suo
Binary file not shown.
5 changes: 5 additions & 0 deletions Factories/ResponseFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@ public Response build(byte[] response, string responsetype)
return new MarketListResponse(response);
}

if (responsetype.Equals(Response.RESPONSES.MARKETSEARCHRESPONSE))
{
return new MarketSearchResponse(response);
}

Console.WriteLine("Unidentified Response, not Built");

return null;
Expand Down
2 changes: 2 additions & 0 deletions Responses/Response.cs
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ public struct RESPONSES
public const string STRINGGROUPRESPONSE = "StringGroupResponse";

public const string MARKETLISTRESPONSE = "MarketListResponse";

public const string MARKETSEARCHRESPONSE = "MarketSearchResponse";
}

/// <summary>
Expand Down

0 comments on commit 8826647

Please sign in to comment.