using System;
using System.Text;
namespace OrdersParser{
/// <summary>
/// Summary description for Client.
/// </summary>
public class Client
{
private string name;
private Address address;
private string notes;
public Client()
{
}
public string Name
{
get { return name; }
set { name = value; }
}
public Address Address
{
get { return address; }
set { address = value; }
}
public string Notes
{
get { return notes; }
set { notes = value; }
}
public void SetAddress(Address address)
{
this.address = address;
}
public override string ToString()
{
StringBuilder sb = new StringBuilder();
sb.Append(name)
.Append(", ")
.Append(address.ToString())
.Append("\nNotes: ")
.Append(notes);
return sb.ToString();
}
}
}
|