C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
APIResource_WithDataEndpoint.cs
Go to the documentation of this file.
1using System.Runtime.Serialization;
3
5{
9 {
10 #region IAPIResource_WithDataEndpoint Implementation
12 private LargeDataSubResource _dataEndpoint;
13
19 public LargeDataSubResource data => _dataEndpoint ??
20 // Hack: For performance reasons, we maintain an instance of these endpoints (which are stateless
21 // aside from a link to `this`). That leads to the need for "AfterMembersCloned".
22 (_dataEndpoint = new LargeDataSubResource(this));
23
28 [DataMember(Name = "data", Order = 97)]
30 public IReference<DataFile> data_file { get; set; }
31
33 protected override void AfterMembersCloned(APIType _)
34 {
35 base.AfterMembersCloned(_);
36 _dataEndpoint = null;
37 }
38 #endregion IAPIResource_WithDataEndpoint Implementation
39 }
40}
Base class used by all types and resources.
Definition APIType.cs:8
Minor extension to the base APIResource class that adds a "/data" sub-resource, since this is common ...
IReference< DataFile > data_file
A reference to the data attached to this resource. This field will automatically be created if you in...
override void AfterMembersCloned(APIType _)
Invoked following construction if the current instance has been created using a member-wise clone of ...
LargeDataSubResource data
An endpoint for accessing or modifying the data file attached to this resource. Also contains a Large...
Describes an endpoint off of some types of resources from which an associated "large data file" can b...
Describes a collection of resources which can be listed.
Base class for a StoredAPIResource that has a "status" property and corresponding "status_message" wh...
Indicates that the property, if left null, will have a default value generated and filled in by the s...
Describes an APIResource class that adds a "/data" sub-resource, since this functionality is common t...