Open lwasak opened 3 years ago
This is an unfortunate mistake. Actually GetOddsChange() should have optional parameter for Culture so that SportEvents are build in that specific culture. This feature was/will be added in version v1.1.0.
When it comes to raw data you can already access them via: eventArgs.GetOddsChange().RawMessage
then you can use: Encoding.UTF8.GetString(...)
to get actual XML Body.
usage
The events args you guys created is overly complicated and can be simplified. In the current construct you have created
GetOddsChange
has to be called twice._rawMessage
is not used anywhere its only assigned from variable to variable.To simplify thins and make this just a basic data object I suggest more optimal structure below
Same goes for all other events you guys sent.
Additionally we need to have the raw message before you guys parsed it. Can you in similar scheme provide it for us in the event? Currently its locked under a private field.
Regards