Ejemplo n.º 1
0
 public RequestFriendsListEventListener(IRealtimeSocialServiceConnectedEventSubscribable subscriptionService,
                                        [NotNull] ISocialService socialService,
                                        [NotNull] ICharacterFriendAddedEventPublisher friendAddedPublisher)
     : base(subscriptionService)
 {
     SocialService        = socialService ?? throw new ArgumentNullException(nameof(socialService));
     FriendAddedPublisher = friendAddedPublisher ?? throw new ArgumentNullException(nameof(friendAddedPublisher));
 }
Ejemplo n.º 2
0
 public RequestAddFriendEventListener(IAddFriendModalClickedEventSubscribable subscriptionService,
                                      [NotNull][KeyFilter(UnityUIRegisterationKey.AddFriendModalWindow)] IUIButton addFriendButton,
                                      [NotNull] ISocialService socialService,
                                      [NotNull][KeyFilter(UnityUIRegisterationKey.AddFriendModalWindow)] IUIElement friendsAddModalWindow,
                                      [NotNull][KeyFilter(UnityUIRegisterationKey.AddFriendModalWindow)] IUIText friendInputText,
                                      [NotNull] ILog logger,
                                      [NotNull] ICharacterFriendAddedEventPublisher friendAddedPublisher)
     : base(subscriptionService)
 {
     AddFriendButton       = addFriendButton ?? throw new ArgumentNullException(nameof(addFriendButton));
     SocialService         = socialService ?? throw new ArgumentNullException(nameof(socialService));
     FriendsAddModalWindow = friendsAddModalWindow;
     FriendInputText       = friendInputText ?? throw new ArgumentNullException(nameof(friendInputText));
     Logger = logger ?? throw new ArgumentNullException(nameof(logger));
     FriendAddedPublisher = friendAddedPublisher ?? throw new ArgumentNullException(nameof(friendAddedPublisher));
 }