mirror of
https://github.com/ckaczor/FeedCenter.git
synced 2026-02-16 18:47:28 -05:00
UI rework and fixes
This commit is contained in:
@@ -1,30 +1,30 @@
|
||||
using FeedCenter.Options;
|
||||
using Realms;
|
||||
using System;
|
||||
using System;
|
||||
using System.Text.RegularExpressions;
|
||||
using FeedCenter.Options;
|
||||
using Realms;
|
||||
|
||||
namespace FeedCenter
|
||||
{
|
||||
public partial class FeedItem : RealmObject
|
||||
{
|
||||
[PrimaryKey]
|
||||
[MapTo("ID")]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
[MapTo("FeedID")]
|
||||
public Guid FeedId { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
public string Link { get; set; }
|
||||
public string Description { get; set; }
|
||||
public bool BeenRead { get; set; }
|
||||
public DateTimeOffset LastFound { get; set; }
|
||||
public bool New { get; set; }
|
||||
public string Guid { get; set; }
|
||||
public int Sequence { get; set; }
|
||||
public string Description { get; set; }
|
||||
|
||||
public Feed Feed { get; set; }
|
||||
|
||||
public Guid FeedId { get; set; }
|
||||
public string Guid { get; set; }
|
||||
|
||||
[PrimaryKey]
|
||||
public Guid Id { get; set; }
|
||||
|
||||
public DateTimeOffset LastFound { get; set; }
|
||||
public string Link { get; set; }
|
||||
public bool New { get; set; }
|
||||
public int Sequence { get; set; }
|
||||
|
||||
public string Title { get; set; }
|
||||
|
||||
public static FeedItem Create()
|
||||
{
|
||||
return new FeedItem { Id = System.Guid.NewGuid() };
|
||||
@@ -59,6 +59,8 @@ namespace FeedCenter
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
title ??= string.Empty;
|
||||
|
||||
// Condense multiple spaces to one space
|
||||
title = MultipleSpaceRegex().Replace(title, " ");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user