C# Class CloudinaryDotNet.Condition

Datei anzeigen Open project: cloudinary/CloudinaryDotNet

Public Properties

Property Type Description
Operators string>.Dictionary
Parameters string>.Dictionary

Protected Properties

Property Type Description
predicateList List

Public Methods

Method 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

Protected Methods

Method Description
Predicate ( string name, string @operator, string value ) : Condition

Create a predicate for binary operators

Private Methods

Method 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 method

public And ( ) : Condition
return Condition

AspectRatio() public method

public AspectRatio ( string @operator, string value ) : Condition
@operator string
value string
return Condition

Condition() public method

public Condition ( ) : System.Collections.Generic
return System.Collections.Generic

Condition() public method

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.
return System.Collections.Generic

FaceCount() public method

public FaceCount ( string @operator, object value ) : Condition
@operator string
value object
return Condition

Height() public method

public Height ( string @operator, object value ) : Condition
@operator string
value object
return Condition

Or() public method

public Or ( ) : Condition
return Condition

PageCount() public method

public PageCount ( string @operator, object value ) : Condition
@operator string
value object
return Condition

Predicate() protected method

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

Serialize() public method

Serialize a list of predicates.
public Serialize ( ) : string
return string

SetParent() public method

public SetParent ( Transformation parent ) : Condition
parent Transformation
return Condition

Then() public method

Terminates the definition of the condition and continue with Transformation definition.
public Then ( ) : Transformation
return Transformation

ToString() public method

public ToString ( ) : string
return string

Width() public method

public Width ( string @operator, object value ) : Condition
@operator string
value object
return Condition

Property Details

Operators public_oe static_oe property

public static Dictionary Operators
return string>.Dictionary

Parameters public_oe static_oe property

public static Dictionary Parameters
return string>.Dictionary

predicateList protected_oe property

protected List predicateList
return List