public TwitterStreamEventExtended(TwitterStreamEvent baseEvent)
 {
     this.UserScreenName = baseEvent.Source.ScreenName;
       this.FullName = baseEvent.Source.Name;
       this.UserImageLocation = baseEvent.Source.ProfileImageLocation;
       this.UserImageSecureLocation = baseEvent.Source.ProfileImageSecureLocation;
       string str = string.Empty;
       this.CreatedAt = baseEvent.CreatedAt;
       this.EventType = baseEvent.EventType;
       this.UnRead = true;
       switch (baseEvent.EventType)
       {
     case TwitterSteamEvent.Favorite:
       str = string.Format("favorited tweet \"{0}\"", (object[]) new string[1]
       {
     ((object) (baseEvent.TargetObject as Status).Text).ToString()
       });
       break;
     case TwitterSteamEvent.Unfavorite:
       str = string.Format("unfavorited tweet \"{0}\"", (object[]) new string[1]
       {
     ((object) (baseEvent.TargetObject as Status).Text).ToString()
       });
       break;
     case TwitterSteamEvent.Follow:
       str = "followed you";
       break;
     case TwitterSteamEvent.ListMemberAdded:
       str = string.Format("added you to the list \"{0}\"", (object[]) new string[1]
       {
     ((object) (baseEvent.TargetObject as TwitterList).Name).ToString()
       });
       break;
     case TwitterSteamEvent.ListMemberRemoved:
       str = string.Format("removed you from list \"{0}\"", (object[]) new string[1]
       {
     ((object) (baseEvent.TargetObject as TwitterList).Name).ToString()
       });
       break;
       }
       this.RawText = str;
 }
Exemplo n.º 2
0
 private void Other(TwitterStreamEvent other)
 {
 }
Exemplo n.º 3
0
 void Event(TwitterStreamEvent e)
 {
     if (this.st == StartType.UserStream)
     {
         switch (e.EventType.ToString())
         {
             case "Favorite":
                 if (ExtendedOAuthTokens.Tokens.Any((x) => { return x.UserName == e.Target.ScreenName; }))
                 {
                     MConsole.WriteLine(e.Source.ScreenName + " Favorited your tweet.");
                 }
                 break;
             case "Retweet":
                 if (ExtendedOAuthTokens.Tokens.Any((x) => { return x.UserName == e.Target.ScreenName; }))
                 {
                     MConsole.WriteLine(e.Source.ScreenName + " Retweeted your tweet.");
                 }
                 break;
             case "Follow":
                 if (ExtendedOAuthTokens.Tokens.Any((x) => { return x.UserName == e.Target.ScreenName; }))
                 {
                     MConsole.WriteLine(e.Source.ScreenName + " Followed you.");
                 }
                 break;
         }
     }
 }
 void OtherEvent(TwitterStreamEvent e)
 {
     this._otherEvents.Add(e.EventType);
 }
Exemplo n.º 5
0
        void OnEvent(TwitterStreamEvent @event)
        {
            Trace.Call(@event);

            try {
            } catch (Exception ex) {
            #if LOG4NET
                Logger.Error("OnEvent()", ex);
            #endif
            }
        }
 static void OtherEvent(TwitterStreamEvent e)
 {
     Console.WriteLine(string.Format("Other event. Type: {0}; From: {1}; {2}", e.EventType, e.Source.ScreenName, e.TargetObject));
 }
Exemplo n.º 7
0
 internal void OnEvent(TwitterStreamEvent @event)
 {
     if (Event != null) {
         Event(@event);
     }
 }
 private void Callback(TwitterStreamEvent eventdetails)
 {
 }
Exemplo n.º 9
0
 void OtherEvent(TwitterStreamEvent e)
 {
     //Show Event message or do nothing
 }
Exemplo n.º 10
0
 internal void EventReceived(TwitterStreamEvent events)
 {
     this.ResetStopped();
       Messenger.Default.Send<GenericMessage<object>>(new GenericMessage<object>((object) events), (object) this.MultiAccountifyToken((Enum) ViewModelMessages.StreamingEvent));
 }