Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. public class LoanNotesController {
  2. public List<CommentsWrapper> ListNotes {get; set;}
  3.  
  4. public LoanNotesController() {
  5. ListNotes = new List<CommentsWrapper>();
  6. }
  7.  
  8. public void getLoanNotes() {
  9. if()){
  10. ТУТ КОЛАУТ
  11. if(command.CommandSuccessful){
  12. fillingCommentsList(command.getResponse(response.getBody()));
  13. }
  14. }
  15. }
  16.  
  17. private void fillingCommentsList(List<ApiCommandGetLoanNotes.LoanComments> list_comments){
  18. for (ApiCommandGetLoanNotes.LoanComments current_comment: list_comments){
  19. ListNotes.add(new CommentsWrapper(current_comment));
  20. }
  21. }
  22.  
  23. public class CommentsWrapper{
  24. public String CreatedDate {get; set;}
  25. public String CreatedBy {get; set;}
  26. public String Text {get; set;}
  27.  
  28. public CommentsWrapper(ApiCommandGetLoanNotes.LoanComments the_comment){
  29. this.CreatedDate = ApiCommandParserDateTime.parseDateTimeWithoutLocalPart(the_comment.CreatedDate);
  30. this.CreatedBy = the_comment.CreatedBy;
  31. this.Text = the_comment.Text;
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement