22
33import com .gikk .twirk .types .clearChat .ClearChatBuilder ;
44import com .gikk .twirk .types .clearChat .GikkDefault_ClearChatBuilder ;
5- import com .gikk .twirk .types .hostTarget .HostTargetBuilder ;
65import com .gikk .twirk .types .hostTarget .GikkDefault_HostTargetBuilder ;
7- import com .gikk .twirk .types .mode . ModeBuilder ;
6+ import com .gikk .twirk .types .hostTarget . HostTargetBuilder ;
87import com .gikk .twirk .types .mode .GikkDefault_ModeBuilder ;
9- import com .gikk .twirk .types .notice . NoticeBuilder ;
8+ import com .gikk .twirk .types .mode . ModeBuilder ;
109import com .gikk .twirk .types .notice .GikkDefault_NoticeBuilder ;
11- import com .gikk .twirk .types .roomstate . RoomstateBuilder ;
10+ import com .gikk .twirk .types .notice . NoticeBuilder ;
1211import com .gikk .twirk .types .roomstate .GikkDefault_RoomstateBuilder ;
13- import com .gikk .twirk .types .subscriberEvent . SubscriberEventBuilder ;
12+ import com .gikk .twirk .types .roomstate . RoomstateBuilder ;
1413import com .gikk .twirk .types .subscriberEvent .GikkDefault_SubscriberEventBuilder ;
15- import com .gikk .twirk .types .twitchMessage . TwitchMessageBuilder ;
14+ import com .gikk .twirk .types .subscriberEvent . SubscriberEventBuilder ;
1615import com .gikk .twirk .types .twitchMessage .GikkDefault_TwitchMessageBuilder ;
17- import com .gikk .twirk .types .users .TwitchUserBuilder ;
16+ import com .gikk .twirk .types .twitchMessage .TwitchMessageBuilder ;
17+ import com .gikk .twirk .types .usernotice .GikkDefault_UsernoticeBuilder ;
18+ import com .gikk .twirk .types .usernotice .UsernoticeBuilder ;
1819import com .gikk .twirk .types .users .GikkDefault_TwitchUserBuilder ;
19- import com .gikk .twirk .types .users .UserstateBuilder ;
2020import com .gikk .twirk .types .users .GikkDefault_UserstateBuilder ;
21+ import com .gikk .twirk .types .users .TwitchUserBuilder ;
22+ import com .gikk .twirk .types .users .UserstateBuilder ;
2123
2224/**Class for creating instances of {@link Twirk}.<br>
2325 * To build an instance of {@link Twirk}, the user has to supply the bot's nick and
@@ -54,6 +56,7 @@ public class TwirkBuilder {
5456 private TwitchUserBuilder twitchUserBuilder ;
5557 private UserstateBuilder userstateBuilder ;
5658 private SubscriberEventBuilder subEventBuilder ;
59+ private UsernoticeBuilder usernoticeBuilder ;
5760
5861 //***********************************************************
5962 // CONSTRUCTOR
@@ -291,6 +294,13 @@ public SubscriberEventBuilder getSubscriberEventBuilder() {
291294 return subEventBuilder != null ? subEventBuilder : new GikkDefault_SubscriberEventBuilder ();
292295 }
293296
297+ /**Retrieves the assigned {@link UsernoticeBuilder}, or the default one, if none is assigned.
298+ *
299+ * @return This builders current {@link UsernoticeBuilder}
300+ */
301+ public UsernoticeBuilder getUsernoticeBuilder () {
302+ return usernoticeBuilder != null ? usernoticeBuilder : new GikkDefault_UsernoticeBuilder ();
303+ }
294304 /**Creates a Twirk object, with the parameters assigned to this
295305 * builder.
296306 *
@@ -300,5 +310,4 @@ public Twirk build(){
300310 return new Twirk (this );
301311 }
302312
303-
304313}
0 commit comments