Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class LoanNotesController {
- public List<CommentsWrapper> ListNotes {get; set;}
- public LoanNotesController() {
- ListNotes = new List<CommentsWrapper>();
- }
- public void getLoanNotes() {
- if()){
- ТУТ КОЛАУТ
- if(command.CommandSuccessful){
- fillingCommentsList(command.getResponse(response.getBody()));
- }
- }
- }
- private void fillingCommentsList(List<ApiCommandGetLoanNotes.LoanComments> list_comments){
- for (ApiCommandGetLoanNotes.LoanComments current_comment: list_comments){
- ListNotes.add(new CommentsWrapper(current_comment));
- }
- }
- public class CommentsWrapper{
- public String CreatedDate {get; set;}
- public String CreatedBy {get; set;}
- public String Text {get; set;}
- public CommentsWrapper(ApiCommandGetLoanNotes.LoanComments the_comment){
- this.CreatedDate = ApiCommandParserDateTime.parseDateTimeWithoutLocalPart(the_comment.CreatedDate);
- this.CreatedBy = the_comment.CreatedBy;
- this.Text = the_comment.Text;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement