C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
AnalyzeRe.APIResourceView.TargetCurrencyDefault Class Reference

Attribute used to define the default value assigned to the target_currency property by the server when this property is left null. More...

Public Member Functions

 TargetCurrencyDefault ()
 Attribute which can determine the server-generated default target currency assigned to a IAPIResource when none is specified.
 
override object GetDefaultValue (object owner)
 Returns the expected default value for the property based on the owner.
 
virtual bool HasDefaultValue (object owner)
 Returns whether there exists an expected default value for the property based on the specified owner.
 

Static Public Member Functions

static string GetDefaultTargetCurrency (IAPIResource resource)
 Determine what the default target currency will be based on the resource type and properties.
 

Properties

virtual object DefaultValue [get]
 Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.
 
virtual bool HasKnownDefault [get]
 Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.
 

Detailed Description

Attribute used to define the default value assigned to the target_currency property by the server when this property is left null.

Definition at line 14 of file TargetCurrencyDefault.cs.

Inheritance diagram for AnalyzeRe.APIResourceView.TargetCurrencyDefault:
AnalyzeRe.Attributes.ServerHasDefault

Constructor & Destructor Documentation

◆ TargetCurrencyDefault()

AnalyzeRe.APIResourceView.TargetCurrencyDefault.TargetCurrencyDefault ( )
inline

Attribute which can determine the server-generated default target currency assigned to a IAPIResource when none is specified.

Definition at line 18 of file TargetCurrencyDefault.cs.

Member Function Documentation

◆ GetDefaultTargetCurrency()

static string AnalyzeRe.APIResourceView.TargetCurrencyDefault.GetDefaultTargetCurrency ( IAPIResource  resource)
inlinestatic

Determine what the default target currency will be based on the resource type and properties.

Parameters
resourceThe IAPIResource derived object.
Returns
The target currency of the resource.

Definition at line 32 of file TargetCurrencyDefault.cs.

◆ GetDefaultValue()

override object AnalyzeRe.APIResourceView.TargetCurrencyDefault.GetDefaultValue ( object  owner)
inlinevirtual

Returns the expected default value for the property based on the owner.

Parameters
ownerThe object from which a default value will be derived.
Returns
The expected default value for the specified object.

Reimplemented from AnalyzeRe.Attributes.ServerHasDefault.

Definition at line 23 of file TargetCurrencyDefault.cs.

◆ HasDefaultValue()

virtual bool AnalyzeRe.Attributes.ServerHasDefault.HasDefaultValue ( object  owner)
inlinevirtualinherited

Returns whether there exists an expected default value for the property based on the specified owner.

Parameters
ownerThe object from which a default value will be derived.
Returns
False if there is no known default value for the supplied object.

Definition at line 56 of file ServerHasDefault.cs.

Property Documentation

◆ DefaultValue

virtual object AnalyzeRe.Attributes.ServerHasDefault.DefaultValue
getinherited

Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.

Definition at line 19 of file ServerHasDefault.cs.

◆ HasKnownDefault

virtual bool AnalyzeRe.Attributes.ServerHasDefault.HasKnownDefault
getinherited

Indicates whether this attribute specifies an expected default value that the server is known to return in all cases.

Definition at line 15 of file ServerHasDefault.cs.


The documentation for this class was generated from the following file: