Class AppliedPenalty
Represents the penalty applied to a search result.
Inherited Members
Namespace: Sdl.LanguagePlatform.TranslationMemory
Assembly: Sdl.LanguagePlatform.TranslationMemory.dll
Syntax
[DataContract]
public class AppliedPenalty
Constructors
AppliedPenalty(PenaltyType, int)
Initializes a new instance of the AppliedPenalty class with the specified type and cost.
Declaration
public AppliedPenalty(PenaltyType pt, int malus)
Parameters
| Type | Name | Description |
|---|---|---|
| PenaltyType | pt | The penalty type. |
| int | malus | The penalty cost. |
AppliedPenalty(string, int)
Initializes a new instance of the AppliedPenalty class with the specified filter name and cost.
Declaration
public AppliedPenalty(string filterName, int malus)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filterName | The filter name. |
| int | malus | The penalty cost. |
Fields
FilterName
Gets or sets the filter name. Default value: null.
Declaration
[DataMember]
public string FilterName
Field Value
| Type | Description |
|---|---|
| string |
Malus
Gets or sets the penalty cost. Default value: 0.
Declaration
[DataMember]
public int Malus
Field Value
| Type | Description |
|---|---|
| int |
Type
Gets or sets the penalty type.
Declaration
[DataMember]
public PenaltyType Type
Field Value
| Type | Description |
|---|---|
| PenaltyType |