Class DataObject
A Data Object used to store information.
Inheritance
Inherited Members
Namespace: SKM.V3
Assembly: Cryptolens.Licensing.dll
Syntax
public class DataObject
Properties
Id
Declaration
public long Id { get; set; }
Property Value
Type | Description |
---|---|
System.Int64 |
IntValue
An int value (int32) to store.
Declaration
public int IntValue { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Remarks
Do not assign any values to this property. Instead, please use SetIntValue(String, Int32)
Name
A way to identify the current object, for instance, OS_Version.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Max 10 chars.
StringValue
A string value (text) to store. Max 100 characters.
Declaration
public string StringValue { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Do not assign any values to this property. Instead, please use SetStringValue(String, String)
Methods
DecrementIntValue(String, Int32)
Decrements the IntValue by a given amount. (in SKM Platform).
Declaration
public bool DecrementIntValue(string token, int decrementValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | decrementValue | The number we should decrement by. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
DecrementIntValue(String, Int32, LicenseKey)
Decrements the IntValue by a given amount. (in SKM Platform).
Declaration
public bool DecrementIntValue(string token, int decrementValue, LicenseKey licenseKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | decrementValue | The number we should decrement by. |
LicenseKey | licenseKey | The license key we should associate with this data object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
DecrementIntValue(String, Int32, LicenseKey, Boolean, Int32)
Decrements the IntValue by a given amount. (in SKM Platform).
Declaration
public bool DecrementIntValue(string token, int decrementValue, LicenseKey licenseKey, bool enableBound = false, int lowerBound = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | decrementValue | The number we should decrement by. |
LicenseKey | licenseKey | The license key we should associate with this data object. |
System.Boolean | enableBound | If set to true, it will be possible to specify an lower bound.
(for Decrement Int Value) For example, if you set the |
System.Int32 | lowerBound | The upper bound. It only works if |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
DecrementIntValue(String, Int32, Boolean, Int32)
Decrements the IntValue by a given amount. (in SKM Platform).
Declaration
public bool DecrementIntValue(string token, int decrementValue, bool enableBound = false, int lowerBound = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | decrementValue | The number we should decrement by. |
System.Boolean | enableBound | If set to true, it will be possible to specify an lower bound.
(for Decrement Int Value) For example, if you set the |
System.Int32 | lowerBound | The upper bound. It only works if |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
IncrementIntValue(String, Int32)
Increments the IntValue by a given amount. (in SKM Platform).
Declaration
public bool IncrementIntValue(string token, int incrementValue)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | incrementValue | The number we should increment by. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
IncrementIntValue(String, Int32, LicenseKey)
Increments the IntValue by a given amount. (in SKM Platform).
Declaration
public bool IncrementIntValue(string token, int incrementValue, LicenseKey licenseKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | incrementValue | The number we should increment by. |
LicenseKey | licenseKey | The license key we should associate with this data object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
IncrementIntValue(String, Int32, LicenseKey, Boolean, Int32)
Increments the IntValue by a given amount. (in SKM Platform).
Declaration
public bool IncrementIntValue(string token, int incrementValue, LicenseKey licenseKey, bool enableBound = false, int upperBound = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | incrementValue | The number we should increment by. |
LicenseKey | licenseKey | The license key we should associate with this data object. |
System.Boolean | enableBound | If set to true, it will be possible to specify an upper/lower bound.
(for Increment Int Value) For example, if you set the |
System.Int32 | upperBound | The upper bound. It only works if |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
IncrementIntValue(String, Int32, Boolean, Int32)
Increments the IntValue by a given amount. (in SKM Platform).
Declaration
public bool IncrementIntValue(string token, int incrementValue, bool enableBound = false, int upperBound = 0)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | incrementValue | The number we should increment by. |
System.Boolean | enableBound | If set to true, it will be possible to specify an upper/lower bound.
(for Increment Int Value) For example, if you set the |
System.Int32 | upperBound | The upper bound. It only works if |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/IncrementIntValue
SetIntValue(String, Int32)
Sets the IntValue to a new value (in Cryptolens).
Declaration
public bool SetIntValue(string token, int value)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | value | The new int value |
Returns
Type | Description |
---|---|
System.Boolean | Returns ListOfDataObjectsResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/SetIntValue
Note also: Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object's IntValue.
SetIntValue(String, Int32, LicenseKey)
Sets the IntValue to a new value (in SKM Platform).
Declaration
public bool SetIntValue(string token, int value, LicenseKey licenseKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.Int32 | value | The new int value |
LicenseKey | licenseKey | The license key we should associate with this data object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns ListOfDataObjectsResult or null. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/SetIntValue
Note also: Integer overflows are not allowed. If you attempt to assign an int value that is beyond the limits of an int32, zero will be assigned to the data object's IntValue.
SetStringValue(String, String)
Sets the StringValue to a new value (in SKM Platform).
Declaration
public bool SetStringValue(string token, string value)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.String | value | The new int value |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/SetStringValue
SetStringValue(String, String, LicenseKey)
Sets the StringValue to a new value (in SKM Platform).
Declaration
public bool SetStringValue(string token, string value, LicenseKey licenseKey)
Parameters
Type | Name | Description |
---|---|---|
System.String | token | The access token. Read more at https://app.cryptolens.io/docs/api/v3/Auth |
System.String | value | The new int value |
LicenseKey | licenseKey | The license key we should associate with this data object. |
Returns
Type | Description |
---|---|
System.Boolean | Returns true if successful or false otherwise. |
Remarks
Note: for more details, please see
https://app.cryptolens.io/docs/api/v3/SetStringValue
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |