deep galley

deep galley

  • NA
  • 32
  • 0

I'm having the different names for different provider how to identify it as a single name in C#

Jul 16 2012 3:20 AM
I will explain here this is the xml i'm having and you see the Betting Offer that is Home Draw Away and the Outcome like X,1,2 for one of my provider
<BettingOffer typeId="43" scopeId="2" type="Home Draw Away" scope="Full time excluding overtime">
  <Odds id="11940061906901" outcome="X">3.20</Odds>
  <Odds id="11940061706901" outcome="1">2.14</Odds>
  <Odds id="11940061806901" outcome="2">3.00</Odds>
  </BettingOffer>
 
Another Provider supply XMl like this for same betting offer:
 
<Event Name="Arsenal v Sunderland" ID="40103450" StartTime="18/08/12 15:00:00">
<Market Name="Full Time Result" ID="40" PlaceCount="1" PlaceOdds="1/1">
 
<Participant Name="Home Win" Odds="1/3" OddsDecimal="1.33" Handicap="" ID="290245295"/>
 
<Participant Name="Draw" Odds="4/1" OddsDecimal="5.00" Handicap="" ID="290245296" />
<Participant Name="Away Win" Odds="8/1" OddsDecimal="9.00" Handicap="" ID="290245297" />
</Market>
</Event>
 
Another Provider supply XMl like:
 
<Event racetype="" tracktype="" handicap=" " class="0">
<Description>Sibir Novosibirsk v Rotor Volgograd</Description>
<Market mkt_typ="Win/Draw/Win" lp_avail="Y" sp_avail="N" mkt_id="9255156">
<Occurrence bet_id="52761388" lp_num="8" lp_den="15" decimal="1.5333333333333" >
<Description>Sibir Novosibirsk</Description>
</Occurrence>
<Occurrence bet_id="52761389" lp_num="13" lp_den="5" decimal="3.6" >
<Description>Draw</Description>
</Occurrence>
<Occurrence bet_id="52761390" lp_num="9" lp_den="2" decimal="5.5" >
<Description>Rotor Volgograd</Description>
</Occurrence>
</Market>
</Event>
 

Now you can visibly see that different provider supply different name for the Betting offer(ie Market ) 
and the outcome varies too for the provider. outcome like Rotor Volgograd,Sibir Novosibirsk,
 1, X, 2,Home,draw,Away it is common to find that for player too.
That's what i had explained earlier so someone please help me regarding this issue.