Skip to content

Commit 7d3b2a5

Browse files
authored
Merge pull request #92 from dwasinge/category
Added Category to Engagement
2 parents 26410f9 + 7b09295 commit 7d3b2a5

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package com.redhat.labs.omp.models;
2+
3+
import lombok.AllArgsConstructor;
4+
import lombok.Builder;
5+
import lombok.Data;
6+
import lombok.NoArgsConstructor;
7+
8+
@Data
9+
@Builder
10+
@NoArgsConstructor
11+
@AllArgsConstructor
12+
public class Category {
13+
14+
private String name;
15+
private Integer count;
16+
17+
}

src/main/java/com/redhat/labs/omp/models/Engagement.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ public class Engagement {
5050
@JsonbProperty("engagement_type")
5151
private String type;
5252

53+
@JsonbProperty("engagement_categories")
54+
private List<Category> categories;
55+
5356
}

0 commit comments

Comments
 (0)