Exemple #1
0
        public UserUnblockedEvent(AccountActivityEvent <Tuple <IUser, IUser> > eventInfo) : base(eventInfo)
        {
            UnblockedBy   = eventInfo.Args.Item1;
            UnblockedUser = eventInfo.Args.Item2;

            InResultOf = GetInResultOf();
        }
 public MessageSentEvent(
     AccountActivityEvent activityEvent,
     IMessage message,
     IUser sender,
     IUser recipient,
     IApp app) : base(activityEvent, message, sender, recipient, app)
 {
     InResultOf = GetInResultOf();
 }
Exemple #3
0
        public UserIsTypingMessageEvent(
            AccountActivityEvent activityEvent,
            IUser typingUser,
            IUser typingTo)
            : base(activityEvent)
        {
            TypingUser = typingUser;
            TypingTo   = typingTo;

            InResultOf = GetInResultOf();
        }
Exemple #4
0
 protected BaseAccountActivityMessageEventArgs(
     AccountActivityEvent activityEvent,
     IMessage message,
     IUser sender,
     IUser recipient,
     IApp app) : base(activityEvent)
 {
     Message   = message;
     Sender    = sender;
     Recipient = recipient;
     App       = app;
 }
        public UserReadMessageConversationEvent(
            AccountActivityEvent activityEvent,
            IUser userWhoReadTheMessageConversation,
            IUser userWhoWroteTheMessage,
            string lastReadEventId)
            : base(activityEvent)
        {
            UserWhoReadTheMessageConversation = userWhoReadTheMessageConversation;
            UserWhoWroteTheMessage            = userWhoWroteTheMessage;
            LastReadEventId = lastReadEventId;

            InResultOf = GetInResultOf();
        }
Exemple #6
0
 public TweetFavoritedEvent(AccountActivityEvent <Tuple <ITweet, IUser> > eventInfo) : base(eventInfo)
 {
     Tweet       = eventInfo.Args.Item1;
     FavoritedBy = eventInfo.Args.Item2;
     InResultOf  = GetInResultOf();
 }
 protected BaseAccountActivityEventArgs(AccountActivityEvent activityEvent)
 {
     AccountUserId = activityEvent.AccountUserId;
     EventDate     = activityEvent.EventDate;
     Json          = activityEvent.Json;
 }
        public TweetCreatedEvent(AccountActivityEvent <ITweet> eventInfo) : base(eventInfo)
        {
            Tweet = eventInfo.Args;

            InResultOf = GetInResultOf();
        }