
BlogEntry=WL.Class(Object,function()
{BlogEntry.base.constructor.call(this);this.id=0;this.authorID=0;this.authorName="";this.subject="";this.description="";this.text="";this.commentOn=false;this.createdOn=new Date();},function(type)
{type.read=function(reader)
{this.id=reader.readInt("id");this.authorID=reader.readInt("authorID");this.authorName=reader.readString("authorName");this.subject=reader.readString("subject");this.description=reader.readString("description");this.text=reader.readString("text");this.commentOn=reader.readBoolean("commentOn");this.createdOn=reader.readDate("createdOn");}
type.write=function(writer)
{writer.writeElementString("id",this.id);writer.writeElementString("authorID",this.authorID);writer.writeElementString("authorName",this.authorName);writer.writeElementString("subject",this.subject);writer.writeElementString("description",this.description);writer.writeElementString("text",this.text);writer.writeBoolean("commentOn",this.commentOn);writer.writeDate("createdOn",this.createdOn);}});BlogComment=WL.Class(Object,function()
{BlogComment.base.constructor.call(this);this.id=0;this.blogEntryID=0;this.text="";this.createdDate=new Date();this.creator="";this.approved=false;},function(type)
{type.read=function(reader)
{this.id=reader.readInt("id");this.blogEntryID=reader.readInt("blogEntryID");this.text=reader.readString("text");this.createdDate=reader.readDate("createdDate");this.creator=reader.readString("creator");this.approved=reader.readBoolean("approved");}
type.write=function(writer)
{writer.writeElementString("id",this.id);writer.writeElementString("blogEntryID",this.blogEntryID);writer.writeElementString("text",this.text);writer.writeDate("createdDate",this.createdDate);writer.writeElementString("creator",this.creator);writer.writeBoolean("approved",this.approved);}});