1 package org.oxerr.viagogo.model.response.webhook;
2
3 import org.apache.commons.lang3.builder.EqualsBuilder;
4 import org.apache.commons.lang3.builder.HashCodeBuilder;
5 import org.oxerr.viagogo.model.response.PagedResource;
6
7 import io.openapitools.jackson.dataformat.hal.HALLink;
8 import io.openapitools.jackson.dataformat.hal.annotation.Link;
9
10 public class Webhooks extends PagedResource<Webhook> {
11
12 private static final long serialVersionUID = 2023080201L;
13
14 @Link("webhook:create")
15 private HALLink createLink;
16
17 public HALLink getCreateLink() {
18 return createLink;
19 }
20
21 public void setCreateLink(HALLink createLink) {
22 this.createLink = createLink;
23 }
24
25 @Override
26 public int hashCode() {
27 return HashCodeBuilder.reflectionHashCode(this);
28 }
29
30 @Override
31 public boolean equals(Object obj) {
32 if (this == obj) {
33 return true;
34 }
35 if (!(obj instanceof Webhooks)) {
36 return false;
37 }
38 Webhooks rhs = (Webhooks) obj;
39 return EqualsBuilder.reflectionEquals(this, rhs);
40 }
41
42 }