LUSID C# SDK
Public Types | Public Member Functions | Protected Member Functions | Properties | List of all members
Lusid.Sdk.Model.InstrumentEvent Class Reference

Base class for representing instrument events in LUSID, such as dividends, stock splits, and option exercises. This base class should not be directly instantiated; each supported InstrumentEventType has a corresponding inherited class. More...

Inheritance diagram for Lusid.Sdk.Model.InstrumentEvent:
Inheritance graph
[legend]

Public Types

enum class  InstrumentEventTypeEnum {
  TransitionEvent = 1 , InformationalEvent = 2 , OpenEvent = 3 , CloseEvent = 4 ,
  StockSplitEvent = 5 , BondDefaultEvent = 6 , CashDividendEvent = 7 , AmortisationEvent = 8 ,
  CashFlowEvent = 9 , ExerciseEvent = 10 , ResetEvent = 11 , TriggerEvent = 12 ,
  RawVendorEvent = 13 , InformationalErrorEvent = 14 , BondCouponEvent = 15 , DividendReinvestmentEvent = 16 ,
  AccumulationEvent = 17 , BondPrincipalEvent = 18 , DividendOptionEvent = 19 , MaturityEvent = 20 ,
  FxForwardSettlementEvent = 21 , ExpiryEvent = 22 , ScripDividendEvent = 23 , StockDividendEvent = 24 ,
  ReverseStockSplitEvent = 25
}
 The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent More...
 

Public Member Functions

 InstrumentEvent (InstrumentEventTypeEnum instrumentEventType=default(InstrumentEventTypeEnum))
 Initializes a new instance of the InstrumentEvent class. More...
 
override string ToString ()
 Returns the string presentation of the object More...
 
virtual string ToJson ()
 Returns the JSON string presentation of the object More...
 
override bool Equals (object input)
 Returns true if objects are equal More...
 
bool Equals (InstrumentEvent input)
 Returns true if InstrumentEvent instances are equal More...
 
override int GetHashCode ()
 Gets the hash code More...
 

Protected Member Functions

 InstrumentEvent ()
 Initializes a new instance of the InstrumentEvent class. More...
 
IEnumerable< System.ComponentModel.DataAnnotations.ValidationResult > BaseValidate (ValidationContext validationContext)
 To validate all properties of the instance More...
 

Properties

InstrumentEventTypeEnum InstrumentEventType [get, set]
 The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent More...
 

Detailed Description

Base class for representing instrument events in LUSID, such as dividends, stock splits, and option exercises. This base class should not be directly instantiated; each supported InstrumentEventType has a corresponding inherited class.

Member Enumeration Documentation

◆ InstrumentEventTypeEnum

The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent

The Type of Event. The available values are: TransitionEvent, InformationalEvent, OpenEvent, CloseEvent, StockSplitEvent, BondDefaultEvent, CashDividendEvent, AmortisationEvent, CashFlowEvent, ExerciseEvent, ResetEvent, TriggerEvent, RawVendorEvent, InformationalErrorEvent, BondCouponEvent, DividendReinvestmentEvent, AccumulationEvent, BondPrincipalEvent, DividendOptionEvent, MaturityEvent, FxForwardSettlementEvent, ExpiryEvent, ScripDividendEvent, StockDividendEvent, ReverseStockSplitEvent

Enumerator
TransitionEvent 

Enum TransitionEvent for value: TransitionEvent

InformationalEvent 

Enum InformationalEvent for value: InformationalEvent

OpenEvent 

Enum OpenEvent for value: OpenEvent

CloseEvent 

Enum CloseEvent for value: CloseEvent

StockSplitEvent 

Enum StockSplitEvent for value: StockSplitEvent

BondDefaultEvent 

Enum BondDefaultEvent for value: BondDefaultEvent

CashDividendEvent 

Enum CashDividendEvent for value: CashDividendEvent

AmortisationEvent 

Enum AmortisationEvent for value: AmortisationEvent

CashFlowEvent 

Enum CashFlowEvent for value: CashFlowEvent

ExerciseEvent 

Enum ExerciseEvent for value: ExerciseEvent

ResetEvent 

Enum ResetEvent for value: ResetEvent

TriggerEvent 

Enum TriggerEvent for value: TriggerEvent

RawVendorEvent 

Enum RawVendorEvent for value: RawVendorEvent

InformationalErrorEvent 

Enum InformationalErrorEvent for value: InformationalErrorEvent

BondCouponEvent 

Enum BondCouponEvent for value: BondCouponEvent

DividendReinvestmentEvent 

Enum DividendReinvestmentEvent for value: DividendReinvestmentEvent

AccumulationEvent 

Enum AccumulationEvent for value: AccumulationEvent

BondPrincipalEvent 

Enum BondPrincipalEvent for value: BondPrincipalEvent

DividendOptionEvent 

Enum DividendOptionEvent for value: DividendOptionEvent

MaturityEvent 

Enum MaturityEvent for value: MaturityEvent

FxForwardSettlementEvent 

Enum FxForwardSettlementEvent for value: FxForwardSettlementEvent

ExpiryEvent 

Enum ExpiryEvent for value: ExpiryEvent

ScripDividendEvent 

Enum ScripDividendEvent for value: ScripDividendEvent

StockDividendEvent 

Enum StockDividendEvent for value: StockDividendEvent

ReverseStockSplitEvent 

Enum ReverseStockSplitEvent for value: ReverseStockSplitEvent

Constructor & Destructor Documentation

◆ InstrumentEvent() [1/2]

Lusid.Sdk.Model.InstrumentEvent.InstrumentEvent ( )
inlineprotected

Initializes a new instance of the InstrumentEvent class.

◆ InstrumentEvent() [2/2]

Lusid.Sdk.Model.InstrumentEvent.InstrumentEvent ( InstrumentEventTypeEnum  instrumentEventType = default(InstrumentEventTypeEnum))
inline

Member Function Documentation

◆ BaseValidate()

IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> Lusid.Sdk.Model.InstrumentEvent.BaseValidate ( ValidationContext  validationContext)
inlineprotected

To validate all properties of the instance

Parameters
validationContextValidation context
Returns
Validation Result

◆ Equals() [1/2]

bool Lusid.Sdk.Model.InstrumentEvent.Equals ( InstrumentEvent  input)
inline

Returns true if InstrumentEvent instances are equal

Parameters
inputInstance of InstrumentEvent to be compared
Returns
Boolean

◆ Equals() [2/2]

override bool Lusid.Sdk.Model.InstrumentEvent.Equals ( object  input)
inline

Returns true if objects are equal

Parameters
inputObject to be compared
Returns
Boolean

◆ GetHashCode()

override int Lusid.Sdk.Model.InstrumentEvent.GetHashCode ( )
inline

Gets the hash code

Returns
Hash code

◆ ToJson()

virtual string Lusid.Sdk.Model.InstrumentEvent.ToJson ( )
inlinevirtual

◆ ToString()

override string Lusid.Sdk.Model.InstrumentEvent.ToString ( )
inline

Returns the string presentation of the object

Returns
String presentation of the object

Property Documentation

◆ InstrumentEventType

InstrumentEventTypeEnum Lusid.Sdk.Model.InstrumentEvent.InstrumentEventType
getset

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