com.android.agf.data

## Class GenerateJSONShare

- java.lang.Object
- - com.android.agf.data.GenerateJSONShare

-     public class GenerateJSONShare
      extends Object

  classe per generar el JSON asociat a un dashboard
  Author:
    albert

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `GenerateJSONShare(List<DashComponent> c, Dashboard d)` constructor

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `JSONObject` | `genera()` funcio que genera tot el fitxer a partir dels elements rebuts
    `List<DashComponent>` | `getComponents()`
    `Dashboard` | `getDashboard()`
    `void` | `setComponents(List<DashComponent> components)`
    `void` | `setDashboard(Dashboard dashboard)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### GenerateJSONShare

          public GenerateJSONShare(List<DashComponent> c,
                           Dashboard d)

      constructor
      Parameters:
        `c` -
        `d` -

  - ### Method Detail

    - #### genera

          public JSONObject genera()
                            throws JSONException

      funcio que genera tot el fitxer a partir dels elements rebuts
      Returns:
      Throws:
        `JSONException`

    - #### getComponents

          public List<DashComponent> getComponents()

    - #### setComponents

          public void setComponents(List<DashComponent> components)

    - #### getDashboard

          public Dashboard getDashboard()

    - #### setDashboard

          public void setDashboard(Dashboard dashboard)