C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
LayerView[T].cs
Go to the documentation of this file.
1using System;
2using System.Runtime.Serialization;
3
7
8// ReSharper disable once CheckNamespace (Type is common enough to be on root namespace)
9namespace AnalyzeRe
10{
13 [APITypeAlias("LayerView")]
15 {
16 #region Interface Members
19
22 public override string collection_name => CLASS_COLLECTION_NAME;
23
25 [DataMember(Order = 1, Name = APIType_Polymorphic.TypePropertyName)]
27 public string type => "LayerView";
28
32 public Type LayerType => layer?.GetType() ?? typeof(T);
33
36 ILayer ILayerView.layer
37 {
38 get => layer;
39 set => layer = (T)value;
40 }
41 #endregion Interface Members
42
43 #region Public Properties
46 [DataMember(Order = 21)]
47 [NotNull]
48 public T layer { get; set; }
49 #endregion Public Properties
50
52 public LayerView() { }
53
59 {
60 this.layer = layer;
61 this.analysis_profile = analysis_profile;
62 this.target_currency = target_currency;
63 }
64 }
65}
PortfolioView and LayerView abstract base class.
string target_currency
The currency this view's YLTs are stored in, and the default currency results are returned in....
IReference< AnalysisProfile > analysis_profile
The simulation's analysis profile.
Base class used by all types and resources.
Describes a collection of resources which can be listed.
Represents the Analysis of a Layer.
LayerView(T layer, IReference< AnalysisProfile > analysis_profile, string target_currency)
Construct a LayerView with all its modifiable properties.
Type LayerType
Returns the runtime type of layer this layer_view refers to, or the generic type parameter T if unre...
LayerView()
Default Constructor.
static readonly string CLASS_COLLECTION_NAME
The collection endpoint at which resources of this type reside on the server.
override string collection_name
The collection endpoint at which resources of this type reside on the server.
string type
Serialized to distinguish between other ILayerSource objects.
LayerView factory class.
Definition LayerViews.cs:9
static readonly string CLASS_COLLECTION_NAME
The collection endpoint at which resources of this type reside on the server.
Definition LayerViews.cs:11
Represents the Analysis of a Layer.
Abstract representation of a layer.
Definition ILayer.cs:7