LicenseSpring .Net SDK 7.22.0
Easily add Software Licensing to your application
LicenseSpring.LicenseFeature Class Reference

License feature More...

Inheritance diagram for LicenseSpring.LicenseFeature:
LicenseSpring.ILicenseFeature

Public Types

enum  Type { None , Activation , Consumption }
 Feature type enumeration More...
 

Public Member Functions

bool Equals (LicenseFeature other)
 Returns whether LicenseFeatures are equal More...
 
override bool Equals (object obj)
 Override Object.Equals More...
 
override int GetHashCode ()
 Override Object.GetHashCode More...
 
bool IsExpired ()
 Is license feature expired More...
 
 LicenseFeature ()
 LicenseFeature default constructor
 
 LicenseFeature (string code, Type type)
 LicenseFeature constructor More...
 
override string ToString ()
 Override Object.ToString, helper method, do not rely on its output. More...
 
bool IsExpired ()
 Is license feature expired More...
 
string ToString ()
 Override Object.ToString More...
 

Static Public Member Functions

static Type FeatureTypeFromString (string value)
 Helper function. Converts string value to feature type (LicenseFeature.Type) More...
 

Properties

bool AllowOverages [get]
 Indicates whether overage is allowed for Consumption feature. More...
 
bool AllowUnlimitedConsumptions [get]
 Indicates whether unlimited consumptions is allowed for Consumption feature. More...
 
string Code [get]
 Feature code More...
 
ConsumptionPeriod ConsumptionPeriod [get]
 Period of time after which consumption is reset. More...
 
DateTime ExpiryDate [get]
 It's final end date and time license feature is valid. More...
 
DateTime ExpiryDateUtc [get]
 It's final end date and time license feature is valid. More...
 
Type FeatureType [get]
 Feature type More...
 
int LocalConsumption [get]
 Local consumption of the feature, this is the amount which has not been synced yet. More...
 
int MaxConsumption [get]
 Maximum consumption of the feature. More...
 
int MaxOverages [get]
 Maximum overage allowed for the license feature. More...
 
string Metadata [get]
 Feature metadata More...
 
string Name [get]
 Feature name More...
 
bool ResetConsumption [get]
 Indicates whether consumption resets after a certain period of time. More...
 
int TotalConsumption [get]
 Total consumption of the feature, it includes LocalConsumption. More...
 
- Properties inherited from LicenseSpring.ILicenseFeature
bool AllowOverages [get]
 Indicates whether overage is allowed for Consumption feature. More...
 
bool AllowUnlimitedConsumptions [get]
 Indicates whether unlimited consumptions is allowed for Consumption feature. More...
 
string Code [get]
 Feature code More...
 
ConsumptionPeriod ConsumptionPeriod [get]
 Period of time after which consumption is reset. More...
 
System.DateTime ExpiryDate [get]
 It's final end date and time license feature is valid. More...
 
System.DateTime ExpiryDateUtc [get]
 It's final end date and time license feature is valid. More...
 
LicenseFeature.Type FeatureType [get]
 Feature type More...
 
int LocalConsumption [get]
 Local consumption of the feature, this is the amount which has not been synced yet. More...
 
int MaxConsumption [get]
 Maximum consumption of the feature. More...
 
int MaxOverages [get]
 Maximum overage allowed for the license feature. More...
 
string Metadata [get]
 Feature metadata More...
 
string Name [get]
 Feature name More...
 
bool ResetConsumption [get]
 Indicates whether consumption resets after a certain period of time. More...
 
int TotalConsumption [get]
 Total consumption of the feature, it includes LocalConsumption. More...
 

Detailed Description

License feature

Particular license may have or not some of the product features.

Member Enumeration Documentation

◆ Type

Feature type enumeration

Enumerator
None 

Invalid type

Activation 

Activation license feature type

Consumption 

Consumption license feature type

Constructor & Destructor Documentation

◆ LicenseFeature()

LicenseSpring.LicenseFeature.LicenseFeature ( string  code,
Type  type 
)

LicenseFeature constructor

Parameters
codeFeature code
typeFeature type

Member Function Documentation

◆ Equals() [1/2]

bool LicenseSpring.LicenseFeature.Equals ( LicenseFeature  other)

Returns whether LicenseFeatures are equal

Parameters
otherObject to compare
Returns
true if equal and false otherwise

◆ Equals() [2/2]

override bool LicenseSpring.LicenseFeature.Equals ( object  obj)

Override Object.Equals

Parameters
objObject to compare
Returns
true if equal and false otherwise

◆ FeatureTypeFromString()

static Type LicenseSpring.LicenseFeature.FeatureTypeFromString ( string  value)
static

Helper function. Converts string value to feature type (LicenseFeature.Type)

Parameters
valueString value of the feature type
Returns
LicenseFeature.Type value

◆ GetHashCode()

override int LicenseSpring.LicenseFeature.GetHashCode ( )

Override Object.GetHashCode

Returns
Hash code

◆ IsExpired()

bool LicenseSpring.LicenseFeature.IsExpired ( )

Is license feature expired

Implements LicenseSpring.ILicenseFeature.

◆ ToString()

override string LicenseSpring.LicenseFeature.ToString ( )

Override Object.ToString, helper method, do not rely on its output.

Returns
String with information about this license feature.

Implements LicenseSpring.ILicenseFeature.

Property Documentation

◆ AllowOverages

bool LicenseSpring.LicenseFeature.AllowOverages
get

Indicates whether overage is allowed for Consumption feature.

Implements LicenseSpring.ILicenseFeature.

◆ AllowUnlimitedConsumptions

bool LicenseSpring.LicenseFeature.AllowUnlimitedConsumptions
get

Indicates whether unlimited consumptions is allowed for Consumption feature.

Implements LicenseSpring.ILicenseFeature.

◆ Code

string LicenseSpring.LicenseFeature.Code
get

Feature code

Implements LicenseSpring.ILicenseFeature.

◆ ConsumptionPeriod

ConsumptionPeriod LicenseSpring.LicenseFeature.ConsumptionPeriod
get

Period of time after which consumption is reset.

Implements LicenseSpring.ILicenseFeature.

◆ ExpiryDate

DateTime LicenseSpring.LicenseFeature.ExpiryDate
get

It's final end date and time license feature is valid.

Implements LicenseSpring.ILicenseFeature.

◆ ExpiryDateUtc

DateTime LicenseSpring.LicenseFeature.ExpiryDateUtc
get

It's final end date and time license feature is valid.

Implements LicenseSpring.ILicenseFeature.

◆ FeatureType

Type LicenseSpring.LicenseFeature.FeatureType
get

Feature type

Implements LicenseSpring.ILicenseFeature.

◆ LocalConsumption

int LicenseSpring.LicenseFeature.LocalConsumption
get

Local consumption of the feature, this is the amount which has not been synced yet.

Implements LicenseSpring.ILicenseFeature.

◆ MaxConsumption

int LicenseSpring.LicenseFeature.MaxConsumption
get

Maximum consumption of the feature.

Implements LicenseSpring.ILicenseFeature.

◆ MaxOverages

int LicenseSpring.LicenseFeature.MaxOverages
get

Maximum overage allowed for the license feature.

Implements LicenseSpring.ILicenseFeature.

◆ Metadata

string LicenseSpring.LicenseFeature.Metadata
get

Feature metadata

Implements LicenseSpring.ILicenseFeature.

◆ Name

string LicenseSpring.LicenseFeature.Name
get

Feature name

Implements LicenseSpring.ILicenseFeature.

◆ ResetConsumption

bool LicenseSpring.LicenseFeature.ResetConsumption
get

Indicates whether consumption resets after a certain period of time.

Implements LicenseSpring.ILicenseFeature.

◆ TotalConsumption

int LicenseSpring.LicenseFeature.TotalConsumption
get

Total consumption of the feature, it includes LocalConsumption.

Implements LicenseSpring.ILicenseFeature.


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