View Javadoc

1   package com.atlassian.marketplace.client.model;
2   
3   import com.atlassian.fugue.Option;
4   
5   /**
6    * Information about the download/install counts for an add-on.
7    * @since 2.0.0
8    */
9   public final class AddonDistributionSummary
10  {
11      Boolean bundled;
12      Integer downloads;
13      Option<Integer> totalInstalls;
14      Option<Integer> totalUsers;
15      
16      /**
17       * True if the add-on is a preinstalled component that is always present in applications.
18       */
19      public boolean isBundled()
20      {
21          return bundled;
22      }
23      
24      /**
25       * The number of times the add-on has been downloaded from Marketplace.
26       */
27      public int getDownloads()
28      {
29          return downloads;
30      }
31      
32      public Option<Integer> getTotalInstalls()
33      {
34          return totalInstalls;
35      }
36      
37      public Option<Integer> getTotalUsers()
38      {
39          return totalUsers;
40      }
41  }