01: /*
02: * $Id: CustomerQuoteRequest.java 10789 2008-02-12 20:04:43Z dfeist $
03: * --------------------------------------------------------------------------------------
04: * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
05: *
06: * The software in this package is published under the terms of the CPAL v1.0
07: * license, a copy of which has been included with this distribution in the
08: * LICENSE.txt file.
09: */
10:
11: package org.mule.example.loanbroker.messages;
12:
13: import java.io.Serializable;
14:
15: /**
16: * <code>CustomerQuoteRequest</code> is the request sent by the the LoanBroker
17: */
18: public class CustomerQuoteRequest implements Serializable {
19: /**
20: * Serial version
21: */
22: private static final long serialVersionUID = 6365612435470800746L;
23:
24: /** The customer that requested the quote */
25: private Customer customer;
26:
27: /** The requested loan Amount */
28: private double loanAmount;
29:
30: /** the duration of the loan */
31: private int loanDuration;
32:
33: public CustomerQuoteRequest() {
34: super ();
35: }
36:
37: public CustomerQuoteRequest(Customer customer, double loanAmount,
38: int loanDuration) {
39: this .customer = customer;
40: this .loanAmount = loanAmount;
41: this .loanDuration = loanDuration;
42: }
43:
44: public Customer getCustomer() {
45: return customer;
46: }
47:
48: public void setCustomer(Customer customer) {
49: this .customer = customer;
50: }
51:
52: public double getLoanAmount() {
53: return loanAmount;
54: }
55:
56: public void setLoanAmount(double loanAmount) {
57: this .loanAmount = loanAmount;
58: }
59:
60: public int getLoanDuration() {
61: return loanDuration;
62: }
63:
64: public void setLoanDuration(int loanDuration) {
65: this.loanDuration = loanDuration;
66: }
67: }
|