private void setTimeline(Asset defaultAsset, Slideshow timeline) { timeline.setHeadline("Slideshow"); timeline.setType("default"); if (defaultAsset != null) { timeline.setText("This is your default Slideshow content"); timeline.setAsset(defaultAsset); } else { timeline.setText("You dont have default content for Slideshow"); } }
private void setDefaultProperties(Asset defaultAsset, Slideshow timeline) { timeline.setHeadline("Slideshow"); timeline.setText("This is your default Slideshow content"); timeline.setType("default"); timeline.setAsset(defaultAsset); }
private void setOptionalProperties(Slideshow timeline) { timeline.setHeadline("Slideshow"); timeline.setText("You dont have default content for Slideshow"); timeline.setType("default"); }