package org.stepic.droid.model;

import java.util.List;

public class Reply {
    private final List<Boolean> choices;
    private final String text;
    private final List<Attachment> attachments;
    private final String formula;

    public static class Builder {

        private List<Boolean> choices;
        private String text;
        private List<Attachment> attachments;
        private String formula;

        public Builder() {
        }

        public Builder setChoices(List<Boolean> choices) {
            this.choices = choices;
            return this;
        }

        public Builder setText(String text) {
            this.text = text;
            return this;
        }

        public Builder setAttachments(List<Attachment> attachments) {
            this.attachments = attachments;
            return this;
        }

        public Builder setFormula(String formula) {
            this.formula = formula;
            return this;
        }

        public Reply build() {
            return new Reply(this);
        }

    }

    private Reply(Builder builder) {
        choices = builder.choices;
        text = builder.text;
        attachments = builder.attachments;
        formula = builder.formula;
    }


    public String getText() {
        return text;
    }

    public List<Boolean> getChoices() {
        return choices;
    }

    public String getFormula() {
        return formula;
    }

    public List<Attachment> getAttachments() {
        return attachments;
    }
}

@@ -220,24 +220,57 @@
 ing formula;
+%0A    private final String number;
 %0A%0A    public
@@ -439,16 +439,47 @@
 formula;
+%0A        private String number;
 %0A%0A      
@@ -1019,32 +1019,152 @@
 his;%0A        %7D%0A%0A
+        public Builder setNumber(String number) %7B%0A            this.number = number;%0A            return this;%0A        %7D%0A%0A
         public R
@@ -1415,18 +1415,112 @@
 la;%0A    
+    number = builder.number;%0A    %7D%0A%0A    public String getNumber() %7B%0A        return number;%0A    
 %7D
-%0A
 %0A%0A    pu

add number to reply