1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-04 17:34:07 +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
}
public string Column => column;
public string TweetUrl => tweetUrl;
public string QuoteUrl => quoteUrl;
private readonly string column;
public string Column { get; }
public string TweetUrl { get; }
public string QuoteUrl { get; }
private readonly string html;
private readonly int characters;
private readonly string tweetUrl;
private readonly string quoteUrl;
private readonly bool isExample;
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){
this.column = column;
this.Column = column;
this.TweetUrl = tweetUrl;
this.QuoteUrl = quoteUrl;
this.html = html;
this.tweetUrl = tweetUrl;
this.quoteUrl = quoteUrl;
this.characters = characters;
this.isExample = isExample;
}