Package is.bokun.dtos.booking

Source Code of is.bokun.dtos.booking.BookingAnswerGroupDto

package is.bokun.dtos.booking;

import java.util.*;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import is.bokun.dtos.QuestionDto;
import is.bokun.dtos.QuestionAnswerPairDto;

@JsonIgnoreProperties(ignoreUnknown = true)
public class BookingAnswerGroupDto {

  public String name;
    public String group;
  public List<BookingAnswerDto> answers = new ArrayList<>();
    private List<QuestionAnswerPairDto> questionsAndAnswers = new ArrayList<>();

    public void addPair(QuestionDto q, BookingAnswerWithIdDto a) {
        questionsAndAnswers.add(new QuestionAnswerPairDto(q, a));
    }

    public List<QuestionAnswerPairDto> getQandA() {
        return questionsAndAnswers;
    }
}
TOP

Related Classes of is.bokun.dtos.booking.BookingAnswerGroupDto

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.