1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-24 23:34:05 +02:00

Cleanup code in TweetNotification

This commit is contained in:
chylex 2017-05-24 18:31:42 +02:00
parent 6a379bc2cd
commit 9d048efe06

View File

@ -51,24 +51,22 @@ public enum Position{
TopLeft, TopRight, BottomLeft, BottomRight, Custom TopLeft, TopRight, BottomLeft, BottomRight, Custom
} }
public string Column => column; public string Column { get; }
public string TweetUrl => tweetUrl; public string TweetUrl { get; }
public string QuoteUrl => quoteUrl; public string QuoteUrl { get; }
private readonly string column;
private readonly string html; private readonly string html;
private readonly int characters; private readonly int characters;
private readonly string tweetUrl;
private readonly string quoteUrl;
private readonly bool isExample; private readonly bool isExample;
public TweetNotification(string column, string html, int characters, string tweetUrl, string quoteUrl) : this(column, html, characters, tweetUrl, quoteUrl, false){} public TweetNotification(string column, string html, int characters, string tweetUrl, string quoteUrl) : this(column, html, characters, tweetUrl, quoteUrl, false){}
private TweetNotification(string column, string html, int characters, string tweetUrl, string quoteUrl, bool isExample){ private TweetNotification(string column, string html, int characters, string tweetUrl, string quoteUrl, bool isExample){
this.column = column; this.Column = column;
this.TweetUrl = tweetUrl;
this.QuoteUrl = quoteUrl;
this.html = html; this.html = html;
this.tweetUrl = tweetUrl;
this.quoteUrl = quoteUrl;
this.characters = characters; this.characters = characters;
this.isExample = isExample; this.isExample = isExample;
} }