Class ConsentValue
A model representing a consent value for a specific standard, like IAB’s TCF or USP strings. It is used by IConsentManagementPlatform> to provide detailed consent status.
Implements
IStronglyTyped<string>
Inherited Members
StronglyTyped<string>.Value
StronglyTyped<string>.GetHashCode()
StronglyTyped<string>.ToString()
Namespace: Chartboost.Core.Consent
Assembly: Chartboost.Core.dll
Syntax
[TypeConverter(typeof(StringTypeConverter<ConsentValue>))]
public class ConsentValue : StronglyTyped<string>, IStronglyTyped<string>
Constructors
ConsentValue(string)
Creates a custom value with an arbitrary string value.
Declaration
public ConsentValue(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value |
Fields
Denied
Indicates the user denied consent.
Declaration
public static readonly ConsentValue Denied
Field Value
Type | Description |
---|---|
ConsentValue |
DoesNotApply
Indicates the standard does not apply.
Declaration
public static readonly ConsentValue DoesNotApply
Field Value
Type | Description |
---|---|
ConsentValue |
Granted
Indicates the user granted consent.
Declaration
public static readonly ConsentValue Granted
Field Value
Type | Description |
---|---|
ConsentValue |
Operators
implicit operator ConsentValue(string)
Declaration
public static implicit operator ConsentValue(string obj)
Parameters
Type | Name | Description |
---|---|---|
string | obj |
Returns
Type | Description |
---|---|
ConsentValue |
Implements
Chartboost.Core.Utilities.IStronglyTyped<T>