protected void SetupFromResponse(UserDiscussionResponse ud)
 {
     this.UserResponse = ud;
     this.DiscussionDate = ud.Response.PostedDate;
     this.DiscussionTitle = HttpUtility.HtmlDecode(ud.Response.Title);
     this.DiscussionDescription = HtmlToTextConverter.StripHtml(ud.Response.Description);
     this.DiscussionResponseCount = ud.ChildResponseCounts.TotalResponseCount;
     this.UnreadResponseCount = ud.ChildResponseCounts.UnreadResponseCount;
     this.TotalResponsesLine = CalculateTotalResponsesLine(this.DiscussionResponseCount);
     this.MyResponsesLine = CalculateMyResponsesLine(ud.ChildResponseCounts.PersonalResponseCount);
     this.AuthorName = ud.Response.Author.DisplayName;
     this.NavigationPath = "/Views/DiscussionPage.xaml?responseId=" + ud.Response.ID;
     this.IconTemplate = CalculateIconFromResponseCounts(ud.ChildResponseCounts);
 }
 public DiscussionViewModel(UserDiscussionResponse ur)
 {
     SetupFromResponse(ur);
 }
 public override void ProcessResponse(string resp)
 {
     Result = Deserialize<List<UserDiscussionResponse>>(resp, "userResponses")[0];
 }