
package com.creatubbles.api.model.school;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.jasminb.jsonapi.annotations.Id;
import com.github.jasminb.jsonapi.annotations.Type;

@Type("schools")
public class School {

    @Id
    private String id;

    private String name;

    @JsonProperty("country_code")
    private String countryCode;

    @JsonCreator
    public School() {
    }

    @SuppressWarnings("WeakerAccess")
    School(String name, String countryCode) {
        this.name = name;
        this.countryCode = countryCode;
    }

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public String getCountryCode() {
        return countryCode;
    }

    @Override
    public String toString() {
        return "School{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", countryCode='" + countryCode + '\'' +
                '}';
    }

    public static class Builder {
        private final String name;
        private final String countryCode;

        public Builder(String name, String countryCode) {
            this.name = name;
            this.countryCode = countryCode;
        }

        public School build() {
            return new School(name, countryCode);
        }
    }
}

@@ -37,16 +37,61 @@
 chool;%0A%0A
+import android.support.annotation.Nullable;%0A%0A
 import c
@@ -453,24 +453,312 @@
 untryCode;%0A%0A
+    @JsonProperty(%22country_name%22)%0A    private String countryName;%0A%0A    @JsonProperty(%22instructors_count%22)%0A    private Integer instructorsCount;%0A%0A    @JsonProperty(%22avatar_url%22)%0A    private String avatarUrl;%0A%0A    @JsonProperty(%22custom_style_header%22)%0A    private String customStyleHeader;%0A%0A
     @JsonCre
@@ -1140,203 +1140,844 @@
     
-@Override%0A    public String toString() %7B%0A        return %22School%7B%22 +%0A                %22id='%22 + id + '%5C'' +%0A                %22, name='%22 + name + '%5C'' +%0A                %22, countryCode='%22 + countryCode
+public String getCountryName() %7B%0A        return countryName;%0A    %7D%0A%0A    public Integer getInstructorsCount() %7B%0A        return instructorsCount;%0A    %7D%0A%0A    public String getAvatarUrl() %7B%0A        return avatarUrl;%0A    %7D%0A%0A    /**%0A     * @return String containing CSS style of the school's header%0A     */%0A    @Nullable%0A    public String getCustomStyleHeader() %7B%0A        return customStyleHeader;%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22School%7B%22 +%0A                %22id='%22 + id + '%5C'' +%0A                %22, name='%22 + name + '%5C'' +%0A                %22, countryCode='%22 + countryCode + '%5C'' +%0A                %22, countryName='%22 + countryName + '%5C'' +%0A                %22, instructorsCount=%22 + instructorsCount +%0A                %22, avatarUrl='%22 + avatarUrl + '%5C'' +%0A                %22, customStyleHeader='%22 + customStyleHeader
  + '

Update School model