|
@@ -0,0 +1,53 @@
|
|
|
+package net.p0f.samples.rhpam_fuse_integration.shared_dom;
|
|
|
+
|
|
|
+import javax.xml.bind.annotation.XmlRootElement;
|
|
|
+
|
|
|
+@XmlRootElement
|
|
|
+public class Customer implements java.io.Serializable {
|
|
|
+ private static final long serialVersionUID = 1L;
|
|
|
+ public static final int NONE = 0;
|
|
|
+ public static final int PLATINUM = 4;
|
|
|
+ public static final int GOLD = 3;
|
|
|
+ public static final int SILVER = 2;
|
|
|
+ public static final int BRONZE = 1;
|
|
|
+
|
|
|
+ private String name;
|
|
|
+ private int age;
|
|
|
+ private int loyaltyLevel;
|
|
|
+ private int loyaltyAge;
|
|
|
+ private long milesFlown;
|
|
|
+
|
|
|
+ public String getName() {
|
|
|
+ return name;
|
|
|
+ }
|
|
|
+ public void setName(String name) {
|
|
|
+ this.name = name;
|
|
|
+ }
|
|
|
+ public int getAge() {
|
|
|
+ return age;
|
|
|
+ }
|
|
|
+ public void setAge(int age) {
|
|
|
+ this.age = age;
|
|
|
+ }
|
|
|
+ public int getLoyaltyLevel() {
|
|
|
+ return loyaltyLevel;
|
|
|
+ }
|
|
|
+ public void setLoyaltyLevel(int loyaltyLevel) {
|
|
|
+ this.loyaltyLevel = loyaltyLevel;
|
|
|
+ }
|
|
|
+ public int getLoyaltyAge() {
|
|
|
+ return loyaltyAge;
|
|
|
+ }
|
|
|
+ public void setLoyaltyAge(int loyaltyAge) {
|
|
|
+ this.loyaltyAge = loyaltyAge;
|
|
|
+ }
|
|
|
+ public long getMilesFlown() {
|
|
|
+ return milesFlown;
|
|
|
+ }
|
|
|
+ public void setMilesFlown(long milesFlown) {
|
|
|
+ this.milesFlown = milesFlown;
|
|
|
+ }
|
|
|
+ public String toString() {
|
|
|
+ return "[" + this.name + "/" + this.age + "y/" + this.milesFlown + "mi/" + this.loyaltyLevel + "lvl/" + this.loyaltyAge + "y]";
|
|
|
+ }
|
|
|
+}
|