Exemplo n.º 1
0
 public override void MergeQuery(TwitterQuery toMerge)
 {
     if (toMerge is QueryLocations)
     {
         locationsToQuery.AddRange(((QueryLocations)toMerge).GetLocations());
     }
 }
Exemplo n.º 2
0
 public override void MergeQuery(TwitterQuery toMerge)
 {
     if (toMerge is QueryTrack)
     {
         stringsToTrack.AddRange(((QueryTrack)toMerge).GetTrackStrings());
     }
 }
Exemplo n.º 3
0
 public override void RemoveQuery( TwitterQuery toRemove )
 {
     if ( toRemove is QueryTrack )
     {
         foreach( string t in ((QueryTrack)toRemove ).GetTrackStrings() )
             stringsToTrack.Remove( t );
     }
 }
Exemplo n.º 4
0
        public override void MergeQuery(TwitterQuery toMerge)
        {
            QueryFollow followMerge = toMerge as QueryFollow;

            if (followMerge != null)
            {
                idsToFollow.AddRange(followMerge.GetFollowedIDs());
            }
        }
Exemplo n.º 5
0
 public override void RemoveQuery( TwitterQuery toRemove )
 {
     QueryFollow followMerge = toRemove  as QueryFollow;
     if ( followMerge != null )
     {
         foreach( int id in followMerge.GetFollowedIDs() )
             idsToFollow.Remove( id );
     }
 }
Exemplo n.º 6
0
 public override void RemoveQuery(TwitterQuery toRemove)
 {
     if (toRemove is QueryLocations)
     {
         foreach (Coordinates[] coord in ((QueryLocations)toRemove).GetLocations())
         {
             locationsToQuery.Remove(coord);
         }
     }
 }
Exemplo n.º 7
0
 public override void RemoveQuery(TwitterQuery toRemove)
 {
     if (toRemove is QueryTrack)
     {
         foreach (string t in ((QueryTrack)toRemove).GetTrackStrings())
         {
             stringsToTrack.Remove(t);
         }
     }
 }
Exemplo n.º 8
0
 // Add and remove parameters (to add more)
 public void AddQueryParameter(TwitterQuery query)
 {
     if (queries.ContainsKey(query.GetKey()))
     {
         queries[query.GetKey()].MergeQuery(query);
     }
     else
     {
         queries.Add(query.GetKey(), query);
     }
 }
Exemplo n.º 9
0
        public override void RemoveQuery(TwitterQuery toRemove)
        {
            QueryFollow followMerge = toRemove  as QueryFollow;

            if (followMerge != null)
            {
                foreach (int id in followMerge.GetFollowedIDs())
                {
                    idsToFollow.Remove(id);
                }
            }
        }
Exemplo n.º 10
0
 public void RemoveQueryParameter(TwitterQuery query)
 {
     if (queries.ContainsKey(query.GetKey()))
     {
         TwitterQuery inQueries = queries[query.GetKey()];
         inQueries.RemoveQuery(query);
         if (inQueries.GetParameter() == "")
         {
             queries.Remove(query.GetKey());
         }
     }
 }
Exemplo n.º 11
0
        public abstract string GetParameter();                   // to return URL string with parameters

        public abstract void MergeQuery(TwitterQuery toMerge);   // combine toMerge parameters into this query
Exemplo n.º 12
0
 // Add and remove parameters (to add more)
 public void AddQueryParameter( TwitterQuery query )
 {
     if ( queries.ContainsKey( query.GetKey() ) )
         queries[query.GetKey()].MergeQuery( query );
     else
         queries.Add( query.GetKey(), query );
 }
Exemplo n.º 13
0
 public override void MergeQuery( TwitterQuery toMerge )
 {
     if ( toMerge is QueryTrack )
         stringsToTrack.AddRange( ( (QueryTrack)toMerge ).GetTrackStrings() );
 }
Exemplo n.º 14
0
 public override void RemoveQuery(TwitterQuery toRemove)
 {
     if ( toRemove is QueryLocations )
     {
         foreach( Coordinates[] coord in ((QueryLocations)toRemove ).GetLocations() )
             locationsToQuery.Remove( coord );
     }
 }
Exemplo n.º 15
0
 public void RemoveQueryParameter( TwitterQuery query )
 {
     if ( queries.ContainsKey( query.GetKey() ) )
     {
         TwitterQuery inQueries = queries[query.GetKey() ];
         inQueries.RemoveQuery ( query );
         if ( inQueries.GetParameter() == "" )
             queries.Remove( query.GetKey() );
     }
 }
Exemplo n.º 16
0
 public override void MergeQuery(TwitterQuery toMerge)
 {
     if ( toMerge is QueryLocations )
     {
         locationsToQuery.AddRange( ((QueryLocations)toMerge ).GetLocations() );
     }
 }
Exemplo n.º 17
0
 public abstract void RemoveQuery( TwitterQuery toRemove );
Exemplo n.º 18
0
 public abstract void MergeQuery( TwitterQuery toMerge );
Exemplo n.º 19
0
 public override void MergeQuery( TwitterQuery toMerge )
 {
     QueryFollow followMerge = toMerge as QueryFollow;
     if ( followMerge != null )
         idsToFollow.AddRange( followMerge.GetFollowedIDs() );
 }
Exemplo n.º 20
0
        public abstract void MergeQuery(TwitterQuery toMerge);   // combine toMerge parameters into this query

        public abstract void RemoveQuery(TwitterQuery toRemove); // remove toRemove parameters from this query if they are there