General Category > BeerXML Projects
BrewHelper (.Net BeerXML Data Objects)
(1/1)
mark:
Hello devs!
I am working on a project called BrewHelper (.com). It is sort of different from the direction that some of your projects are taking as it will be used exclusively on brew day.
Project Name: BrewHelper
Project Language: C# behind ASP.Net
Project .Net Framework: 4.0
Project Database: SQLExpress (I have MSDN Universal, but I figured this would be better since all of you can use it for free)
Project Phase: 1 [Building Data Layer / Services Layer (WCF Web Services)]
Load Recipe->Adjust the timers that were generated for your recipe/equipment->Start the first timer and the logging begins.
The timers are all AJAX and allow the brewer to pause. They are database-driven using page methods, so if you drop internet connectivity for some reason, it will just pick up with real time based on your original timer start.
ANYWAY! I have completed the first step for this project by creating a .Net Data Object around BeerXML's latest.
You can pass in an XML document with multiple recipes or a single recipe and receive either a List<Recipe> or Recipe object back.
Example of using the object:
--- Code: ---using BeerXml;
namespace BrewServices
{
class TestBrew
{
Recipe OneRecipe = new Recipe(MyXMLElement);
List<Recipe> MultipleRecipes = new Recipe().GetRecipes(MyXMLNodeList);
Console.WriteLine(OneRecipe.RecipeName);
// or
foreach (Hop CurrentHop in OneRecipe.RecipeHops)
{
Console.WriteLine(CurrentHop.HopName);
}
}
}
--- End code ---
I have these objects working and are data typed correctly (as per the implementation guide). I think I am going to store the source code as a public DropBox share. That way you guys can always have my latest version.
mark:
BeerXML .Net Objects VERSION 1.0 - 09/21/2010
http://www.brewhelper.com/SHARE.zip
I will get my naming conventions updated for the next release for the ZIP file and the code.
The zip contains a solution which will load two projects: a console app and the BeerXml Objects. The console app is a testing application. Just change the folder location to your Recipe file and it should work. Please post questions/comments!
FYI, I have not tested every attribute before releasing. I just wanted to have something to show you guys so you know I am not just blowing smoke.
Navigation
[0] Message Index
Go to full version