Skip to content

Commit 193105c

Browse files
committed
Modified with data type
Changed Integer type to Long
1 parent 9a2683e commit 193105c

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/com/agilecrm/stubs/Contact.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
public class Contact
1616
{
1717
@JsonProperty("id")
18-
private Integer id;
18+
private Long id;
1919

2020
@JsonProperty("count")
2121
private Integer count;
@@ -58,12 +58,12 @@ public static enum Type
5858
PERSON, COMPANY
5959
};
6060

61-
public Integer getId()
61+
public Long getId()
6262
{
6363
return id;
6464
}
6565

66-
public void setId(Integer id)
66+
public void setId(Long id)
6767
{
6868
this.id = id;
6969
}
@@ -223,9 +223,11 @@ public void setCustomField(String fieldName, String fieldValue)
223223
properties.add(contactField);
224224
}
225225

226-
public String toString()
227-
{
228-
return id + " " + type + " " + tags + " " + properties + " "
229-
+ created_time + " " + updated_time;
230-
}
226+
@Override
227+
public String toString() {
228+
return "Contact [id=" + id + ", count=" + count + ", owner_key="
229+
+ owner_key + ", tags=" + tags + ", lead_score=" + lead_score
230+
+ ", star_value=" + star_value + ", properties=" + properties.toString()
231+
+ ", domainUser=" + domainUser + "]";
232+
}
231233
}

0 commit comments

Comments
 (0)