LicenseSpring Management .Net SDK 1.10.1
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
LicenseSpring.ProductService Class Reference

Implements IProductService interface. More...

Inheritance diagram for LicenseSpring.ProductService:
LicenseSpring.BaseService LicenseSpring.IProductService LicenseSpring.IService LicenseSpring.IService

Public Member Functions

InstallationFile CreateInstallationFile (CreateInstallationFileDto dto)
 Creates a new installation file.
Parameters
dtoDto with information about new installation file.

 
ProductCustomField CreateProductCustomField (CreateProductCustomFieldDto dto)
 Creates a new product custom field.
Parameters
dtoDto with information about new product custom field.

 
ProductFeature CreateProductFeature (CreateProductFeatureDto dto)
 Creates a new product feature.
Parameters
dtoDto with information about new product feature.

 
string DeleteProductCustomField (uint fieldId)
 Deletes product custom field.
Parameters
fieldIdThe Id of the product custom field that will be deleted.

 
string DeleteProductFeature (ulong featureId)
 Deletes product feature.
Parameters
featureIdThe Id of the product feature that will be deleted.

 
BundleProduct[] ListBundlesForAProduct (ulong productId)
 Show all bundles for a Product the requesting manager has access permissions to.
Parameters
productIdId of the product.

 
InstallationFile[] ListInstallationFiles (ListInstallationFilesRequestDto dto, out uint count)
 Returns installation files.
Parameters
dtoData transfer object that is used for searching through installation files.
countQuantity of product installation files, use for iteration of the result pages.

 
ProductCustomField[] ListProductCustomFields (ListProductFieldsRequestDto dto, out uint Count)
 Returns product custom fields.
Parameters
dtoData transfer object that is used for searching through all product custom fields.
countQuantity of product custom fields, use for iteration of the result pages.

 
ProductFeature[] ListProductFeatures (ListProductFieldsRequestDto dto, out uint count)
 Returns product features.
Parameters
dtoData transfer object that is used for searching through product features.
countQuantity of product features, use for iteration of the result pages.

 
Product[] ListProducts (ListProductsRequestDto dto, out uint Count)
 Returns products.
Parameters
dtoData transfer object that is used for searching through all products.
countQuantity of products, use for iteration of the result pages.

 
BundleProduct[] ListProductsInABundle (ulong bundleId)
 Show all Products in a bundle the requesting manager has access permissions to.
Parameters
bundleIdId of the product bundle.

 
ProductCustomField UpdateProductCustomField (CreateProductCustomFieldDto dto, uint fieldId)
 Updates product custom field.
Parameters
dtoDto with information about product custom field that will be updated.
fieldIdThe Id of the product custom field that will be updated.

 
ProductFeature UpdateProductFeature (CreateProductFeatureDto dto, ulong featureId)
 Updates product feature.
Parameters
dtoDto with information about product feature that will be updated.
featureIdThe Id of the product feature that will be updated.

 
- Public Member Functions inherited from LicenseSpring.BaseService
void Initialize (ManagementConfiguration configuration)
 Initialize management service with given configuration.
Parameters
configurationManagementConfiguration object to use
Exceptions
System.ArgumentNullExceptionThrown when configuration is null

 
bool IsInitialized ()
 Check whether management service has been initialized.
Returns
True if management service has been initialized and ready to use or false otherwise

 
bool IsOnline (bool throwExceptions=false)
 Helper method, it checks connection to the LicenseSpring platform.
Parameters
throwExceptionsBoolean value indicating whether this method should throw exceptions, by default it's false.
Returns
True if SDK is able to connect to the LicenseSpring platform and false otherwise.
Exceptions
System.InvalidOperationExceptionThrown when license manager is not initialized
LicenseSpring.NetworkExceptionIn case of network errors, e.g. no Internet connection or operation timed out.

 

Detailed Description

Implements IProductService interface.

Member Function Documentation

◆ CreateInstallationFile()

InstallationFile LicenseSpring.ProductService.CreateInstallationFile ( CreateInstallationFileDto  dto)

Creates a new installation file.

Parameters
dtoDto with information about new installation file.

Implements LicenseSpring.IProductService.

◆ CreateProductCustomField()

ProductCustomField LicenseSpring.ProductService.CreateProductCustomField ( CreateProductCustomFieldDto  dto)

Creates a new product custom field.

Parameters
dtoDto with information about new product custom field.

Implements LicenseSpring.IProductService.

◆ CreateProductFeature()

ProductFeature LicenseSpring.ProductService.CreateProductFeature ( CreateProductFeatureDto  dto)

Creates a new product feature.

Parameters
dtoDto with information about new product feature.

Implements LicenseSpring.IProductService.

◆ DeleteProductCustomField()

string LicenseSpring.ProductService.DeleteProductCustomField ( uint  fieldId)

Deletes product custom field.

Parameters
fieldIdThe Id of the product custom field that will be deleted.

Implements LicenseSpring.IProductService.

◆ DeleteProductFeature()

string LicenseSpring.ProductService.DeleteProductFeature ( ulong  featureId)

Deletes product feature.

Parameters
featureIdThe Id of the product feature that will be deleted.

Implements LicenseSpring.IProductService.

◆ ListBundlesForAProduct()

BundleProduct[] LicenseSpring.ProductService.ListBundlesForAProduct ( ulong  productId)

Show all bundles for a Product the requesting manager has access permissions to.

Parameters
productIdId of the product.

Implements LicenseSpring.IProductService.

◆ ListInstallationFiles()

InstallationFile[] LicenseSpring.ProductService.ListInstallationFiles ( ListInstallationFilesRequestDto  dto,
out uint  count 
)

Returns installation files.

Parameters
dtoData transfer object that is used for searching through installation files.
countQuantity of product installation files, use for iteration of the result pages.

Implements LicenseSpring.IProductService.

◆ ListProductCustomFields()

ProductCustomField[] LicenseSpring.ProductService.ListProductCustomFields ( ListProductFieldsRequestDto  dto,
out uint  Count 
)

Returns product custom fields.

Parameters
dtoData transfer object that is used for searching through all product custom fields.
countQuantity of product custom fields, use for iteration of the result pages.

Implements LicenseSpring.IProductService.

◆ ListProductFeatures()

ProductFeature[] LicenseSpring.ProductService.ListProductFeatures ( ListProductFieldsRequestDto  dto,
out uint  count 
)

Returns product features.

Parameters
dtoData transfer object that is used for searching through product features.
countQuantity of product features, use for iteration of the result pages.

Implements LicenseSpring.IProductService.

◆ ListProducts()

Product[] LicenseSpring.ProductService.ListProducts ( ListProductsRequestDto  dto,
out uint  Count 
)

Returns products.

Parameters
dtoData transfer object that is used for searching through all products.
countQuantity of products, use for iteration of the result pages.

Implements LicenseSpring.IProductService.

◆ ListProductsInABundle()

BundleProduct[] LicenseSpring.ProductService.ListProductsInABundle ( ulong  bundleId)

Show all Products in a bundle the requesting manager has access permissions to.

Parameters
bundleIdId of the product bundle.

Implements LicenseSpring.IProductService.

◆ UpdateProductCustomField()

ProductCustomField LicenseSpring.ProductService.UpdateProductCustomField ( CreateProductCustomFieldDto  dto,
uint  fieldId 
)

Updates product custom field.

Parameters
dtoDto with information about product custom field that will be updated.
fieldIdThe Id of the product custom field that will be updated.

Implements LicenseSpring.IProductService.

◆ UpdateProductFeature()

ProductFeature LicenseSpring.ProductService.UpdateProductFeature ( CreateProductFeatureDto  dto,
ulong  featureId 
)

Updates product feature.

Parameters
dtoDto with information about product feature that will be updated.
featureIdThe Id of the product feature that will be updated.

Implements LicenseSpring.IProductService.


The documentation for this class was generated from the following file: