package com.tombeadman.screensteps.model;

import com.thoughtworks.xstream.annotations.XStreamAlias;

/**
 * Created with IntelliJ IDEA.
 * User: tombeadman
 * Date: 22/11/14
 * Time: 19:03
 */
@XStreamAlias("step")
public class Step {
    private String title;
    private String instructions;
    @XStreamAlias("instructions_position")
    private String instructionsPosition;
    private String id;
    @XStreamAlias("anchor_name")
    private String anchorName;
    @XStreamAlias("parent_id")
    private Integer parentId;
    private Integer level;
    private Media media;

    public String getTitle() {
        return title;
    }

    public String getInstructions() {
        return instructions;
    }

    public String getInstructionsPosition() {
        return instructionsPosition;
    }

    public String getId() {
        return id;
    }

    public String getAnchorName() {
        return anchorName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public Integer getLevel() {
        return level;
    }

    @Override
    public String toString() {
        return "Step{" +
                "id=" + id + '\'' +
                "title='" + title + '\'' +
                '}';
    }
}

@@ -502,23 +502,22 @@
 private 
-Integer
+String
  parentI
@@ -531,23 +531,22 @@
 private 
-Integer
+String
  level;%0A
@@ -926,31 +926,30 @@
 %0A    public 
-Integer
+String
  getParentId
@@ -1000,15 +1000,14 @@
 lic 
-Integer
+String
  get

Make Step attributes String to avoid zero length unmarshalling error