共用方式為


Settings Interface

public interface Settings

An instance of this class provides access to all the operations defined in Settings.

Method Summary

Modifier and Type Method and Description
List<AppVersionSettingObject> list(UUID appId, String versionId)

Gets the settings in a version of the application.

Observable<List<AppVersionSettingObject>> listAsync(UUID appId, String versionId)

Gets the settings in a version of the application.

OperationStatus update(UUID appId, String versionId, List<AppVersionSettingObject> listOfAppVersionSettingObject)

Updates the settings in a version of the application.

Observable<OperationStatus> updateAsync(UUID appId, String versionId, List<AppVersionSettingObject> listOfAppVersionSettingObject)

Updates the settings in a version of the application.

Method Details

list

public List list(UUID appId, String versionId)

Gets the settings in a version of the application.

Parameters:

appId - The application ID.
versionId - The version ID.

Returns:

the List<AppVersionSettingObject> object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

listAsync

public Observable> listAsync(UUID appId, String versionId)

Gets the settings in a version of the application.

Parameters:

appId - The application ID.
versionId - The version ID.

Returns:

the observable to the List<AppVersionSettingObject> object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

update

public OperationStatus update(UUID appId, String versionId, List listOfAppVersionSettingObject)

Updates the settings in a version of the application.

Parameters:

appId - The application ID.
versionId - The version ID.
listOfAppVersionSettingObject - A list of the updated application version settings.

Returns:

the OperationStatus object if successful.

Throws:

IllegalArgumentException - thrown if parameters fail the validation
ErrorResponseException - thrown if the request is rejected by server
RuntimeException - all other wrapped checked exceptions if the request fails to be sent

updateAsync

public Observable updateAsync(UUID appId, String versionId, List listOfAppVersionSettingObject)

Updates the settings in a version of the application.

Parameters:

appId - The application ID.
versionId - The version ID.
listOfAppVersionSettingObject - A list of the updated application version settings.

Returns:

the observable to the OperationStatus object

Throws:

IllegalArgumentException - thrown if parameters fail the validation

Applies to