public LikesAndCommentsItem(double width, Thickness margin, WallPost wallPost, Action commentsTapped, bool suppressRepostButton, bool displaySeparator) : base(width, margin, new Thickness()) { if (wallPost == null) { Debugger.Break(); } this._wallPost = wallPost; if (this._wallPost != null) { if (this._wallPost.likes == null) { this._wallPost.likes = new Likes(); } if (this._wallPost.comments == null) { this._wallPost.comments = new Comments(); } if (this._wallPost.reposts == null) { this._wallPost.reposts = new Reposts(); } } this._itemType = LikesAndCommentsItem.ItemType.Post; this._commentsTappedAction = commentsTapped; this._suppressRepostButton = suppressRepostButton; this._displaySeparator = displaySeparator; this.Initialize(); }
public LikesAndCommentsItem(double width, Thickness margin, VKClient.Common.Backend.DataObjects.Video video, Action commentsTapped) : base(width, margin, new Thickness()) { this._video = video; if (this._video.likes == null) { this._video.likes = new Likes(); } this._itemType = LikesAndCommentsItem.ItemType.Video; this._commentsTappedAction = commentsTapped; this.Initialize(); }