OSDN Git Service

/notifications/mentions.json を使用したReplyタブの更新に対応
[opentween/open-tween.git] / OpenTween / Models / MentionsTabModel.cs
index 2d38b60..a56675b 100644 (file)
@@ -41,21 +41,29 @@ namespace OpenTween.Models
         public override MyCommon.TabUsageType TabType
             => MyCommon.TabUsageType.Mentions;
 
-        public MentionsTabModel() : this(MyCommon.DEFAULTTAB.REPLY)
+        public PostId? OldestId { get; set; }
+
+        public string? CursorTop { get; set; }
+
+        public string? CursorBottom { get; set; }
+
+        public MentionsTabModel()
+            : this(MyCommon.DEFAULTTAB.REPLY)
         {
         }
 
-        public MentionsTabModel(string tabName) : base(tabName)
+        public MentionsTabModel(string tabName)
+            : base(tabName)
         {
         }
 
         public override async Task RefreshAsync(Twitter tw, bool backward, bool startup, IProgress<string> progress)
         {
             bool read;
-            if (!SettingManager.Common.UnreadManage)
+            if (!SettingManager.Instance.Common.UnreadManage)
                 read = true;
             else
-                read = startup && SettingManager.Common.Read;
+                read = startup && SettingManager.Instance.Common.Read;
 
             progress.Report(string.Format(Properties.Resources.GetTimelineWorker_RunWorkerCompletedText4, backward ? -1 : 1));