View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import com.atlassian.fugue.Option;
4   
5   /**
6    * One of the "highlight" image/text sections that can be part of {@link AddonVersion} details.
7    * @since 2.0.0
8    */
9   public final class Highlight
10  {
11      Links _links;
12      @ReadOnly Embedded _embedded;
13      String title;
14      HtmlString body;
15      Option<String> explanation;
16  
17      public Links getLinks()
18      {
19          return _links;
20      }
21  
22      /**
23       * Descriptive heading to describe a highlight image.
24       */
25      public String getTitle()
26      {
27         return title;
28      }
29  
30      /**
31       * Longer description with additional information about a highlight image.
32       */
33      public HtmlString getBody()
34      {
35          return body;
36      }
37      
38      /**
39       * Caption that will be displayed in the image gallery when viewing the image.
40       */
41      public Option<String> getExplanation()
42      {
43          return explanation;
44      }
45  
46      /**
47       * The full-sized image for the highlight.
48       */
49      public ImageInfo getFullImage()
50      {
51          return _embedded.screenshot;
52      }
53  
54      /**
55       * The reduced-size image for the highlight.
56       */
57      public ImageInfo getThumbnailImage()
58      {
59          return _embedded.thumbnail;
60      }
61      
62      static final class Embedded
63      {
64          ImageInfo screenshot;
65          ImageInfo thumbnail;
66      }
67  }