Class ProjectContext

    • Constructor Summary

      Constructors 
      Constructor Description
      ProjectContext​(android.content.Context context, java.lang.String pluginId, java.lang.String projectId, java.lang.String apiKey)
      Creates a new ProjectContext for a given ProjectID plus ApiKey
      ProjectContext​(android.content.Context context, java.lang.String pluginId, java.lang.String projectId, java.lang.String apiKey, Version assetVersion)
      Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific Version
      ProjectContext​(android.content.Context context, java.lang.String pluginId, java.lang.String projectId, java.lang.String apiKey, Version assetVersion, java.lang.String stage)
      Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset version on a specific Stage
      ProjectContext​(android.content.Context context, java.lang.String pluginId, java.lang.String projectId, java.lang.String apiKey, java.lang.String assetId)
      Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset Id
      ProjectContext​(android.content.Context context, org.json.JSONObject jsonObject)
      Creates a new AssetContext from a JSON object
    • Constructor Detail

      • ProjectContext

        public ProjectContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              java.lang.String projectId,
                              java.lang.String apiKey)
        Creates a new ProjectContext for a given ProjectID plus ApiKey
        Parameters:
        context - Application context
        projectId - project Id to be set
        apiKey - API key to be set
      • ProjectContext

        public ProjectContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              java.lang.String projectId,
                              java.lang.String apiKey,
                              java.lang.String assetId)
        Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset Id
        Parameters:
        context - Application context
        projectId - project Id to be set
        apiKey - API key to be set
        assetId - asset Id to be set
      • ProjectContext

        public ProjectContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              java.lang.String projectId,
                              java.lang.String apiKey,
                              Version assetVersion)
        Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific Version
        Parameters:
        context - Application context
        pluginId - plugin Id
        projectId - project Id to be set
        apiKey - API key to be set
        assetVersion - asset version to be set
      • ProjectContext

        public ProjectContext​(@NonNull
                              android.content.Context context,
                              java.lang.String pluginId,
                              java.lang.String projectId,
                              java.lang.String apiKey,
                              Version assetVersion,
                              java.lang.String stage)
        Creates a new ProjectContext for a given ProjectID plus ApiKey with a specific asset version on a specific Stage
        Parameters:
        context - Application context
        pluginId - plugin id
        projectId - project Id to be set
        apiKey - API key to be set
        assetVersion - asset version to be set
        stage - stage to be set
      • ProjectContext

        public ProjectContext​(@NonNull
                              android.content.Context context,
                              org.json.JSONObject jsonObject)
        Creates a new AssetContext from a JSON object
        Parameters:
        context - Application context
        jsonObject - JSON object to be parsed
    • Method Detail

      • getProjectId

        public java.lang.String getProjectId()
        Gets the project Id
        Returns:
        project Id
      • setProjectId

        public void setProjectId​(java.lang.String projectId)
        Sets the project Id
        Parameters:
        projectId - project Id to be set
      • getApiKey

        public java.lang.String getApiKey()
        Gets the API key that is used to authenticate
        Returns:
        api key
      • setApiKey

        public void setApiKey​(java.lang.String apiKey)
        Sets the API key that is used to authenticate
        Parameters:
        apiKey - api key to be set