package com.creatubbles.api.model.gallery;

import android.support.annotation.Nullable;

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;
import com.github.jasminb.jsonapi.models.EmptyRelationship;

@Type("gallery_howto_sections")
public class HowToSection extends EmptyRelationship {
    @Id
    private String id;

    @JsonProperty("title")
    private String title;

    @JsonProperty("content")
    private String content;

    @JsonProperty("image")
    private ChallengeImage image;

    @JsonCreator
    public HowToSection() {
    }

    public String getId() {
        return id;
    }

    @Nullable
    public String getTitle() {
        return title;
    }

    @Nullable
    public String getContent() {
        return content;
    }

    @Nullable
    public ChallengeImage getImage() {
        return image;
    }

    @Override
    public String toString() {
        return "HowToSection{" +
                "id='" + id + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", image=" + image +
                '}';
    }
}

@@ -640,24 +640,160 @@
 age image;%0A%0A
+    @JsonProperty(%22video_480_url%22)%0A    private String video480Url;%0A%0A    @JsonProperty(%22video_720_url%22)%0A    private String video720Url;%0A%0A
     @JsonCre
@@ -797,16 +797,16 @@
 Creator%0A
-
     publ
@@ -1116,24 +1116,168 @@
 age;%0A    %7D%0A%0A
+    public String getVideo480Url() %7B%0A        return video480Url;%0A    %7D%0A%0A    public String getVideo720Url() %7B%0A        return video720Url;%0A    %7D%0A%0A
     @Overrid
@@ -1465,32 +1465,32 @@
 ontent + '%5C'' +%0A
-
                 
@@ -1510,16 +1510,130 @@
 image +%0A
+                %22, video480Url='%22 + video480Url + '%5C'' +%0A                %22, video720Url='%22 + video720Url + '%5C'' +%0A
         

Add video url fields to challenge section