C# Client Library
A C# Client Library for the AnalyzeRe REST API
Loading...
Searching...
No Matches
Reinstatement.cs
Go to the documentation of this file.
1using System;
2using System.Runtime.Serialization;
3
4namespace AnalyzeRe.Layers
5{
7 public class Reinstatement : APIType, IEquatable<Reinstatement>
8 {
9 #region Public Properties
11 [DataMember(Order = 2)]
12 public double premium { get; set; }
13
15 [DataMember(Order = 3)]
16 public double brokerage { get; set; }
17 #endregion Public Properties
18
19 #region Equality Overrides
23 public bool Equals(Reinstatement other) => ReferenceEquals(this, other) ||
24 other != null &&
25 premium.Equals(other.premium) &&
26 brokerage.Equals(other.brokerage);
27
31 public override bool Equals(object obj) =>
32 obj is Reinstatement objReinstatement && Equals(objReinstatement);
33
36 public override int GetHashCode()
37 {
38 return new { premium, brokerage }.GetHashCode();
39 }
40 #endregion Equality Overrides
41 }
42}
Base class used by all types and resources.
Definition APIType.cs:8
Represents a reinstatement premium and brokerage amount.
override bool Equals(object obj)
Determine if this Reinstatement is equivalent to another.
double brokerage
The amount of brokerage fee paid for a full reinstatement as a percentage of the reinstatement premiu...
bool Equals(Reinstatement other)
Determine if this Reinstatement is equivalent to another.
double premium
The amount of premium to be paid for a full reinstatement as a percentage of the layer's written prem...
override int GetHashCode()
Get the HashCode for this Reinstatement.