Refactored the Kernel registration fluent interface to be more readable, better suppo...
[castle.git] / Samples / MonoRail / WizardSample / WizardSampleSite / Model / Account.cs
blobbc347a48382da8df1b54ef1c9ad446ea12f78e5c
1 // Copyright 2004-2008 Castle Project - http://www.castleproject.org/
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
15 namespace WizardSampleSite.Model
17 using System;
19 [Serializable]
20 public class Account
22 private String name;
23 private String email;
24 private String username;
25 private String pwd;
26 private String pwdconfirmation;
28 private String[] interests;
30 public string Name
32 get { return name; }
33 set { name = value; }
36 public string Email
38 get { return email; }
39 set { email = value; }
42 public string Username
44 get { return username; }
45 set { username = value; }
48 public string Pwd
50 get { return pwd; }
51 set { pwd = value; }
54 public string PwdConfirmation
56 get { return pwdconfirmation; }
57 set { pwdconfirmation = value; }
60 public string[] Interests
62 get { return interests; }
63 set { interests = value; }
66 public bool IsEmpty
68 get { return name == null || email == null; }