public virtual ApiPostClientResponseModel MapClientRequestToResponse( int id, ApiPostClientRequestModel request) { var response = new ApiPostClientResponseModel(); response.SetProperties(id, request.AcceptedAnswerId, request.AnswerCount, request.Body, request.ClosedDate, request.CommentCount, request.CommunityOwnedDate, request.CreationDate, request.FavoriteCount, request.LastActivityDate, request.LastEditDate, request.LastEditorDisplayName, request.LastEditorUserId, request.OwnerUserId, request.ParentId, request.PostTypeId, request.Score, request.Tag, request.Title, request.ViewCount); return(response); }
public void AddPost(ApiPostClientResponseModel item) { if (!this.Posts.Any(x => x.Id == item.Id)) { this.Posts.Add(item); } }
public void SetWikiPostIdNavigation(ApiPostClientResponseModel value) { this.WikiPostIdNavigation = value; }
public void SetExcerptPostIdNavigation(ApiPostClientResponseModel value) { this.ExcerptPostIdNavigation = value; }
public void SetRelatedPostIdNavigation(ApiPostClientResponseModel value) { this.RelatedPostIdNavigation = value; }