• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk / #4847

15 Sep 2025 09:55AM UTC coverage: 37.163% (-0.1%) from 37.307%
#4847

push

github

web-flow
feat: Add missing webhook events (box/box-openapi#554) (#1412)

8 of 12 new or added lines in 3 files covered. (66.67%)

74 existing lines in 11 files now uncovered.

18446 of 49635 relevant lines covered (37.16%)

0.37 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/com/box/sdkgen/schemas/recentitem/RecentItem.java
1
package com.box.sdkgen.schemas.recentitem;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.internal.utils.DateTimeUtils;
6
import com.box.sdkgen.schemas.filefull.FileFull;
7
import com.box.sdkgen.schemas.folderfull.FolderFull;
8
import com.box.sdkgen.schemas.recentitemresource.RecentItemResource;
9
import com.box.sdkgen.schemas.weblink.WebLink;
10
import com.box.sdkgen.serialization.json.EnumWrapper;
11
import com.fasterxml.jackson.annotation.JsonFilter;
12
import com.fasterxml.jackson.annotation.JsonProperty;
13
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
14
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
15
import java.util.Date;
16
import java.util.Objects;
17

18
@JsonFilter("nullablePropertyFilter")
19
public class RecentItem extends SerializableObject {
20

21
  protected String type;
22

23
  protected RecentItemResource item;
24

25
  @JsonDeserialize(
26
      using = RecentItemInteractionTypeField.RecentItemInteractionTypeFieldDeserializer.class)
27
  @JsonSerialize(
28
      using = RecentItemInteractionTypeField.RecentItemInteractionTypeFieldSerializer.class)
29
  @JsonProperty("interaction_type")
30
  protected EnumWrapper<RecentItemInteractionTypeField> interactionType;
31

32
  @JsonProperty("interacted_at")
33
  @JsonSerialize(using = DateTimeUtils.DateTimeSerializer.class)
34
  @JsonDeserialize(using = DateTimeUtils.DateTimeDeserializer.class)
35
  protected Date interactedAt;
36

37
  @JsonProperty("interaction_shared_link")
38
  protected String interactionSharedLink;
39

40
  public RecentItem() {
UNCOV
41
    super();
×
UNCOV
42
  }
×
43

44
  protected RecentItem(Builder builder) {
45
    super();
×
46
    this.type = builder.type;
×
47
    this.item = builder.item;
×
48
    this.interactionType = builder.interactionType;
×
49
    this.interactedAt = builder.interactedAt;
×
50
    this.interactionSharedLink = builder.interactionSharedLink;
×
51
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
52
  }
×
53

54
  public String getType() {
55
    return type;
×
56
  }
57

58
  public RecentItemResource getItem() {
59
    return item;
×
60
  }
61

62
  public EnumWrapper<RecentItemInteractionTypeField> getInteractionType() {
63
    return interactionType;
×
64
  }
65

66
  public Date getInteractedAt() {
67
    return interactedAt;
×
68
  }
69

70
  public String getInteractionSharedLink() {
71
    return interactionSharedLink;
×
72
  }
73

74
  @Override
75
  public boolean equals(Object o) {
76
    if (this == o) {
×
77
      return true;
×
78
    }
79
    if (o == null || getClass() != o.getClass()) {
×
80
      return false;
×
81
    }
82
    RecentItem casted = (RecentItem) o;
×
83
    return Objects.equals(type, casted.type)
×
84
        && Objects.equals(item, casted.item)
×
85
        && Objects.equals(interactionType, casted.interactionType)
×
86
        && Objects.equals(interactedAt, casted.interactedAt)
×
87
        && Objects.equals(interactionSharedLink, casted.interactionSharedLink);
×
88
  }
89

90
  @Override
91
  public int hashCode() {
92
    return Objects.hash(type, item, interactionType, interactedAt, interactionSharedLink);
×
93
  }
94

95
  @Override
96
  public String toString() {
97
    return "RecentItem{"
×
98
        + "type='"
99
        + type
100
        + '\''
101
        + ", "
102
        + "item='"
103
        + item
104
        + '\''
105
        + ", "
106
        + "interactionType='"
107
        + interactionType
108
        + '\''
109
        + ", "
110
        + "interactedAt='"
111
        + interactedAt
112
        + '\''
113
        + ", "
114
        + "interactionSharedLink='"
115
        + interactionSharedLink
116
        + '\''
117
        + "}";
118
  }
119

120
  public static class Builder extends NullableFieldTracker {
×
121

122
    protected String type;
123

124
    protected RecentItemResource item;
125

126
    protected EnumWrapper<RecentItemInteractionTypeField> interactionType;
127

128
    protected Date interactedAt;
129

130
    protected String interactionSharedLink;
131

132
    public Builder type(String type) {
133
      this.type = type;
×
134
      return this;
×
135
    }
136

137
    public Builder item(FileFull item) {
138
      this.item = new RecentItemResource(item);
×
139
      return this;
×
140
    }
141

142
    public Builder item(FolderFull item) {
143
      this.item = new RecentItemResource(item);
×
144
      return this;
×
145
    }
146

147
    public Builder item(WebLink item) {
148
      this.item = new RecentItemResource(item);
×
149
      return this;
×
150
    }
151

152
    public Builder item(RecentItemResource item) {
153
      this.item = item;
×
154
      return this;
×
155
    }
156

157
    public Builder interactionType(RecentItemInteractionTypeField interactionType) {
158
      this.interactionType = new EnumWrapper<RecentItemInteractionTypeField>(interactionType);
×
159
      return this;
×
160
    }
161

162
    public Builder interactionType(EnumWrapper<RecentItemInteractionTypeField> interactionType) {
163
      this.interactionType = interactionType;
×
164
      return this;
×
165
    }
166

167
    public Builder interactedAt(Date interactedAt) {
168
      this.interactedAt = interactedAt;
×
169
      return this;
×
170
    }
171

172
    public Builder interactionSharedLink(String interactionSharedLink) {
173
      this.interactionSharedLink = interactionSharedLink;
×
174
      return this;
×
175
    }
176

177
    public RecentItem build() {
178
      return new RecentItem(this);
×
179
    }
180
  }
181
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc