private CommentStructureResponse CreateComment(int order, GetTextCommentContract textComment, bool nested, long textId) { var comment = new CommentStructureResponse { Order = order, Time = ((DateTimeOffset)textComment.CreateTime).ToUnixTimeMilliseconds(), TimeString = textComment.CreateTime.ToLocalTime().ToString(m_localizationService.GetRequestCulture()), Text = textComment.Text, Picture = null, // Picture is not supported Id = textComment.Id, Nested = nested, TextId = textId, TextReferenceId = textComment.TextReferenceId, Name = textComment.User.FirstName, Surname = textComment.User.LastName }; return(comment); }
public GetTextCommentContract AddUserDetails(GetTextCommentContract textComment) { textComment.User = GetUserContractForUser(textComment.User); textComment.TextComments = AddUserDetails(textComment.TextComments); return(textComment); }