File tree Expand file tree Collapse file tree 6 files changed +54
-138
lines changed
algoliasearch/src/main/java/com/algolia/model Expand file tree Collapse file tree 6 files changed +54
-138
lines changed Original file line number Diff line number Diff line change 5
5
6
6
import com .fasterxml .jackson .annotation .*;
7
7
import com .fasterxml .jackson .databind .annotation .*;
8
+ import java .util .ArrayList ;
9
+ import java .util .List ;
8
10
import java .util .Objects ;
9
11
10
12
/** image of a search banner. */
11
13
public class BannerImage {
12
14
13
15
@ JsonProperty ("urls" )
14
- private BannerImageUrl urls ;
16
+ private List < BannerImageUrl > urls ;
15
17
16
18
@ JsonProperty ("title" )
17
19
private String title ;
18
20
19
- public BannerImage setUrls (BannerImageUrl urls ) {
21
+ public BannerImage setUrls (List < BannerImageUrl > urls ) {
20
22
this .urls = urls ;
21
23
return this ;
22
24
}
23
25
26
+ public BannerImage addUrls (BannerImageUrl urlsItem ) {
27
+ if (this .urls == null ) {
28
+ this .urls = new ArrayList <>();
29
+ }
30
+ this .urls .add (urlsItem );
31
+ return this ;
32
+ }
33
+
24
34
/** Get urls */
25
35
@ javax .annotation .Nullable
26
- public BannerImageUrl getUrls () {
36
+ public List < BannerImageUrl > getUrls () {
27
37
return urls ;
28
38
}
29
39
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
6
6
import com .fasterxml .jackson .annotation .*;
7
7
import com .fasterxml .jackson .databind .annotation .*;
8
+ import java .util .ArrayList ;
9
+ import java .util .List ;
8
10
import java .util .Objects ;
9
11
10
12
/** widgets returned from any rules that are applied to the current search. */
11
13
public class Widgets {
12
14
13
15
@ JsonProperty ("banners" )
14
- private Banners banners ;
16
+ private List < Banner > banners ;
15
17
16
- public Widgets setBanners (Banners banners ) {
18
+ public Widgets setBanners (List < Banner > banners ) {
17
19
this .banners = banners ;
18
20
return this ;
19
21
}
20
22
21
- /** Get banners */
23
+ public Widgets addBanners (Banner bannersItem ) {
24
+ if (this .banners == null ) {
25
+ this .banners = new ArrayList <>();
26
+ }
27
+ this .banners .add (bannersItem );
28
+ return this ;
29
+ }
30
+
31
+ /** banners defined in the merchandising studio for the given search. */
22
32
@ javax .annotation .Nullable
23
- public Banners getBanners () {
33
+ public List < Banner > getBanners () {
24
34
return banners ;
25
35
}
26
36
Original file line number Diff line number Diff line change 5
5
6
6
import com .fasterxml .jackson .annotation .*;
7
7
import com .fasterxml .jackson .databind .annotation .*;
8
+ import java .util .ArrayList ;
9
+ import java .util .List ;
8
10
import java .util .Objects ;
9
11
10
12
/** image of a search banner. */
11
13
public class BannerImage {
12
14
13
15
@ JsonProperty ("urls" )
14
- private BannerImageUrl urls ;
16
+ private List < BannerImageUrl > urls ;
15
17
16
18
@ JsonProperty ("title" )
17
19
private String title ;
18
20
19
- public BannerImage setUrls (BannerImageUrl urls ) {
21
+ public BannerImage setUrls (List < BannerImageUrl > urls ) {
20
22
this .urls = urls ;
21
23
return this ;
22
24
}
23
25
26
+ public BannerImage addUrls (BannerImageUrl urlsItem ) {
27
+ if (this .urls == null ) {
28
+ this .urls = new ArrayList <>();
29
+ }
30
+ this .urls .add (urlsItem );
31
+ return this ;
32
+ }
33
+
24
34
/** Get urls */
25
35
@ javax .annotation .Nullable
26
- public BannerImageUrl getUrls () {
36
+ public List < BannerImageUrl > getUrls () {
27
37
return urls ;
28
38
}
29
39
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
6
6
import com .fasterxml .jackson .annotation .*;
7
7
import com .fasterxml .jackson .databind .annotation .*;
8
+ import java .util .ArrayList ;
9
+ import java .util .List ;
8
10
import java .util .Objects ;
9
11
10
12
/** widgets returned from any rules that are applied to the current search. */
11
13
public class Widgets {
12
14
13
15
@ JsonProperty ("banners" )
14
- private Banners banners ;
16
+ private List < Banner > banners ;
15
17
16
- public Widgets setBanners (Banners banners ) {
18
+ public Widgets setBanners (List < Banner > banners ) {
17
19
this .banners = banners ;
18
20
return this ;
19
21
}
20
22
21
- /** Get banners */
23
+ public Widgets addBanners (Banner bannersItem ) {
24
+ if (this .banners == null ) {
25
+ this .banners = new ArrayList <>();
26
+ }
27
+ this .banners .add (bannersItem );
28
+ return this ;
29
+ }
30
+
31
+ /** banners defined in the merchandising studio for the given search. */
22
32
@ javax .annotation .Nullable
23
- public Banners getBanners () {
33
+ public List < Banner > getBanners () {
24
34
return banners ;
25
35
}
26
36
You can’t perform that action at this time.
0 commit comments