diff --git a/oAuthTwitterWrapper/App.config b/oAuthTwitterWrapper/App.config
index 043986b..50b7a6c 100644
--- a/oAuthTwitterWrapper/App.config
+++ b/oAuthTwitterWrapper/App.config
@@ -5,6 +5,7 @@
+
diff --git a/oAuthTwitterWrapper/ITimeLineSettings.cs b/oAuthTwitterWrapper/ITimeLineSettings.cs
index 434b55e..5c9d2e2 100644
--- a/oAuthTwitterWrapper/ITimeLineSettings.cs
+++ b/oAuthTwitterWrapper/ITimeLineSettings.cs
@@ -8,5 +8,6 @@ public interface ITimeLineSettings
string ScreenName { get; set; }
string TimelineFormat { get; set; }
string TimelineUrl { get; }
+ string Since_ID { get; set; }
}
}
diff --git a/oAuthTwitterWrapper/OAuthTwitterWrapper.cs b/oAuthTwitterWrapper/OAuthTwitterWrapper.cs
index 0fbceb7..46eafe5 100644
--- a/oAuthTwitterWrapper/OAuthTwitterWrapper.cs
+++ b/oAuthTwitterWrapper/OAuthTwitterWrapper.cs
@@ -31,14 +31,16 @@ public OAuthTwitterWrapper()
string include_rts = ConfigurationManager.AppSettings["include_rts"];
string exclude_replies = ConfigurationManager.AppSettings["exclude_replies"];
int count = Convert.ToInt16(ConfigurationManager.AppSettings["count"]);
- string timelineFormat = ConfigurationManager.AppSettings["timelineFormat"];
+ string timelineFormat = ConfigurationManager.AppSettings["timelineFormat"];
+ string since_id = ConfigurationManager.AppSettings["timeline_since_id"];
TimeLineSettings = new TimeLineSettings
{
ScreenName = screenname,
IncludeRts = include_rts,
ExcludeReplies = exclude_replies,
Count = count,
- TimelineFormat = timelineFormat
+ TimelineFormat = timelineFormat,
+ Since_ID = since_id
};
string searchFormat = ConfigurationManager.AppSettings["searchFormat"];
string searchQuery = ConfigurationManager.AppSettings["searchQuery"];
diff --git a/oAuthTwitterWrapper/TimeLineSettings.cs b/oAuthTwitterWrapper/TimeLineSettings.cs
index 35722fa..79e7266 100644
--- a/oAuthTwitterWrapper/TimeLineSettings.cs
+++ b/oAuthTwitterWrapper/TimeLineSettings.cs
@@ -12,11 +12,20 @@ public class TimeLineSettings : ITimeLineSettings
public string ExcludeReplies { get; set; }
public int Count { get; set; }
public string TimelineFormat { get; set; }
+ public string Since_ID { get; set; }
public string TimelineUrl
{
get
{
- return string.Format(TimelineFormat, ScreenName, IncludeRts, ExcludeReplies, Count);
+ if (Since_ID != "0")
+ {
+ return string.Format(TimelineFormat, ScreenName, IncludeRts, ExcludeReplies, Count);
+ }
+ else
+ {
+ return string.Format(TimelineFormat + "&since_id={4}", ScreenName, IncludeRts, ExcludeReplies, Count, Since_ID);
+ }
+
}
}
}