C# Class CloudinaryDotNet.Condition

Afficher le fichier Open project: cloudinary/CloudinaryDotNet

Méthodes publiques

Свойство Type Description
Operators string>.Dictionary
Parameters string>.Dictionary

Protected Properties

Свойство Type Description
predicateList List

Méthodes publiques

Méthode Description
And ( ) : Condition
AspectRatio ( string @operator, string value ) : Condition
Condition ( ) : System.Collections.Generic
Condition ( string condition ) : System.Collections.Generic

Create a Condition object. The condition string will be translated to a serialized condition.

FaceCount ( string @operator, object value ) : Condition
Height ( string @operator, object value ) : Condition
Or ( ) : Condition
PageCount ( string @operator, object value ) : Condition
Serialize ( ) : string

Serialize a list of predicates.

SetParent ( Transformation parent ) : Condition
Then ( ) : Transformation

Terminates the definition of the condition and continue with Transformation definition.

ToString ( ) : string
Width ( string @operator, object value ) : Condition

Méthodes protégées

Méthode Description
Predicate ( string name, string @operator, string value ) : Condition

Create a predicate for binary operators

Private Methods

Méthode Description
GetOperatorReplacement ( string value ) : string
Literal ( string condition ) : string

Convert incoming condition string into Literal in the URL format. e.g. "width > 0" => "w_lt_0"

Method Details

And() public méthode

public And ( ) : Condition
Résultat Condition

AspectRatio() public méthode

public AspectRatio ( string @operator, string value ) : Condition
@operator string
value string
Résultat Condition

Condition() public méthode

public Condition ( ) : System.Collections.Generic
Résultat System.Collections.Generic

Condition() public méthode

Create a Condition object. The condition string will be translated to a serialized condition.
public Condition ( string condition ) : System.Collections.Generic
condition string Condition in string format.
Résultat System.Collections.Generic

FaceCount() public méthode

public FaceCount ( string @operator, object value ) : Condition
@operator string
value object
Résultat Condition

Height() public méthode

public Height ( string @operator, object value ) : Condition
@operator string
value object
Résultat Condition

Or() public méthode

public Or ( ) : Condition
Résultat Condition

PageCount() public méthode

public PageCount ( string @operator, object value ) : Condition
@operator string
value object
Résultat Condition

Predicate() protected méthode

Create a predicate for binary operators
protected Predicate ( string name, string @operator, string value ) : Condition
name string
@operator string
value string
Résultat Condition

Serialize() public méthode

Serialize a list of predicates.
public Serialize ( ) : string
Résultat string

SetParent() public méthode

public SetParent ( Transformation parent ) : Condition
parent Transformation
Résultat Condition

Then() public méthode

Terminates the definition of the condition and continue with Transformation definition.
public Then ( ) : Transformation
Résultat Transformation

ToString() public méthode

public ToString ( ) : string
Résultat string

Width() public méthode

public Width ( string @operator, object value ) : Condition
@operator string
value object
Résultat Condition

Property Details

Operators public_oe static_oe property

public static Dictionary Operators
Résultat string>.Dictionary

Parameters public_oe static_oe property

public static Dictionary Parameters
Résultat string>.Dictionary

predicateList protected_oe property

protected List predicateList
Résultat List