C# Class IO.Swagger.Api.FeatureApi

Represents a collection of functions to interact with the API endpoints
Inheritance: IFeatureApi
Show file Open project: TNOCS/csTouch Class Usage Examples

Public Methods

Method Description
AddFeature ( string layerId, Feature body ) : ApiResponse

Adds a feature

AddFeatureAsync ( string layerId, Feature body ) : System.Threading.Tasks.Task

Adds a feature

DeleteFeature ( string featureId, string layerId ) : void

Delete a feature by ID Deletes an entire layer

DeleteFeatureAsync ( string featureId, string layerId ) : System.Threading.Tasks.Task

Delete a feature by ID Deletes an entire layer

FeatureApi ( ApiClient apiClient = null ) : System

Initializes a new instance of the FeatureApi class.

FeatureApi ( string basePath ) : System

Initializes a new instance of the FeatureApi class.

GetBasePath ( ) : string

Gets the base path of the API client.

GetFeature ( string featureId, string layerId ) : Feature

Find feature by ID Returns a single feature

GetFeatureAsync ( string featureId, string layerId ) : System.Threading.Tasks.Task

Find feature by ID Returns a single feature

SetBasePath ( string basePath ) : void

Sets the base path of the API client.

UpdateFeature ( Feature body, string layerId, string featureId ) : void

Update a single pre-existing feature

UpdateFeatureAsync ( Feature body, string layerId, string featureId ) : System.Threading.Tasks.Task

Update a single pre-existing feature

Method Details

AddFeature() public method

Adds a feature
public AddFeature ( string layerId, Feature body ) : ApiResponse
layerId string ID of layer to add the feature to
body IO.Swagger.Model.Feature JSON that will be used to insert the feature
return IO.Swagger.Model.ApiResponse

AddFeatureAsync() public method

Adds a feature
public AddFeatureAsync ( string layerId, Feature body ) : System.Threading.Tasks.Task
layerId string ID of layer to add the feature to
body IO.Swagger.Model.Feature JSON that will be used to insert the feature
return System.Threading.Tasks.Task

DeleteFeature() public method

Delete a feature by ID Deletes an entire layer
public DeleteFeature ( string featureId, string layerId ) : void
featureId string ID of feature to be deleted
layerId string ID of the layer where the feature is located
return void

DeleteFeatureAsync() public method

Delete a feature by ID Deletes an entire layer
public DeleteFeatureAsync ( string featureId, string layerId ) : System.Threading.Tasks.Task
featureId string ID of feature to be deleted
layerId string ID of the layer where the feature is located
return System.Threading.Tasks.Task

FeatureApi() public method

Initializes a new instance of the FeatureApi class.
public FeatureApi ( ApiClient apiClient = null ) : System
apiClient IO.Swagger.Client.ApiClient an instance of ApiClient (optional)
return System

FeatureApi() public method

Initializes a new instance of the FeatureApi class.
public FeatureApi ( string basePath ) : System
basePath string
return System

GetBasePath() public method

Gets the base path of the API client.
public GetBasePath ( ) : string
return string

GetFeature() public method

Find feature by ID Returns a single feature
public GetFeature ( string featureId, string layerId ) : Feature
featureId string ID of the feature to be returned
layerId string ID of the layer in which the feature is located
return IO.Swagger.Model.Feature

GetFeatureAsync() public method

Find feature by ID Returns a single feature
public GetFeatureAsync ( string featureId, string layerId ) : System.Threading.Tasks.Task
featureId string ID of the feature to be returned
layerId string ID of the layer in which the feature is located
return System.Threading.Tasks.Task

SetBasePath() public method

Sets the base path of the API client.
public SetBasePath ( string basePath ) : void
basePath string The base path
return void

UpdateFeature() public method

Update a single pre-existing feature
public UpdateFeature ( Feature body, string layerId, string featureId ) : void
body IO.Swagger.Model.Feature JSON that will be used to update the feature
layerId string ID or Name of the Layer to update
featureId string ID of the feature to update
return void

UpdateFeatureAsync() public method

Update a single pre-existing feature
public UpdateFeatureAsync ( Feature body, string layerId, string featureId ) : System.Threading.Tasks.Task
body IO.Swagger.Model.Feature JSON that will be used to update the feature
layerId string ID or Name of the Layer to update
featureId string ID of the feature to update
return System.Threading.Tasks.Task