예제 #1
0
		public override async Task Reply (string message)
		{
			// TODO: Grab the comment from the response and save the id
			var account = _facebookHelper.GetAccount ();
//			var response = await _facebookService.Comment (_facebookPost.Id, message);
			var comment = new FacebookComment ()
			{
				Id = Guid.NewGuid().ToString(),
				CreatedAt = DateTime.Now,
				Message = message,
				LikedCount = 0,
				IsLikedByUser = false,
				User = new FacebookUser ()
				{
					Id = account.Properties["id"],
					Name = account.Username,
				}
			};

            IsCommentedByUser = true;
			_facebookPost.Comments.Add (comment);
		}
		public FacebookCommentCardViewModel (FacebookComment facebookComment) : base ()
		{
			_facebookComment = facebookComment;
			_facebookService = IocContainer.GetContainer ().Resolve<IFacebookService> ();

			ShowTimeline = true;
			ShowCommentButton = false;
			ShowShareButton = false;
			ShowDateTime = false;
			ShowSocialMediaImage = false;
		}