From fa338dd363f21135dcc77287f23a0aaa4e74159a Mon Sep 17 00:00:00 2001 From: dakkar Date: Sun, 27 Mar 2011 14:48:54 +0100 Subject: bookmarks! and output as a tree --- lib/DeWeave/BO/Bookmark/Bookmark.pm | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 lib/DeWeave/BO/Bookmark/Bookmark.pm (limited to 'lib/DeWeave/BO/Bookmark/Bookmark.pm') diff --git a/lib/DeWeave/BO/Bookmark/Bookmark.pm b/lib/DeWeave/BO/Bookmark/Bookmark.pm new file mode 100644 index 0000000..7b235b3 --- /dev/null +++ b/lib/DeWeave/BO/Bookmark/Bookmark.pm @@ -0,0 +1,44 @@ +package DeWeave::BO::Bookmark::Bookmark; +use Moose; +use namespace::autoclean; +use MooseX::Types::Moose qw(Str ArrayRef Bool); + +extends 'DeWeave::BO::Bookmark::Base'; + +has title => ( + isa => Str, + required => 1, + is => 'ro', +); + +has bmkUri => ( + isa => Str, + required => 1, + is => 'ro', +); + +has description => ( + isa => Str, + required => 0, + is => 'ro', +); + +has loadInSidebar => ( + isa => Bool, + required => 1, + is => 'ro', +); + +has tags => ( + isa => ArrayRef[Str], + required => 0, + is => 'ro', +); + +has keyword => ( + isa => Str, + required => 0, + is => 'ro', +); + +1; -- cgit v1.2.3