public LikesItem(double width, Thickness margin, LikedObjectData objectData, LikesInfo likesInfo, bool canRepost, bool loggedInUserLiked, User loggedInUser, List <User> users) : base(width, margin, new Thickness()) { this._objectData = objectData; this._likesInfo = likesInfo; this._canRepost = canRepost; this._users = users; this._loggedInUserLiked = loggedInUserLiked; this._loggedInUser = loggedInUser; this.Initialize(); }
public LikesItem(double width, Thickness margin, WallPost wallPost, LikesInfo likesInfo, bool loggedInUserLiked, User loggedInUser, List <User> users, bool displaySeparator) : base(width, margin, new Thickness()) { this._wallPost = wallPost; this._likesInfo = likesInfo; this._likesInfo.repostsCount = wallPost.reposts.count; this._loggedInUserLiked = loggedInUserLiked; this._loggedInUser = loggedInUser; this._users = users; this._objectData = new LikedObjectData() { ItemId = wallPost.id, OwnerId = wallPost.to_id, Type = (int)this._wallPost.GetLikeObjectType() }; this._displaySeparator = displaySeparator; this.Initialize(); }