private clsBatsMan GetBatsmanDetails(int i_BatsmanNo)
        {
            // Local variable
            clsBatsMan objBatsman = null;
            clsPlayer  objPlayer  = null;
            string     playerID   = string.Empty;

            try
            {
                playerID = _objMatchDetails.score.batsman[i_BatsmanNo].id;
                //Getting player details
                objPlayer                  = GetMOMPlayerDetails(playerID);
                objBatsman                 = new clsBatsMan();
                objBatsman.Id              = objPlayer.Id;
                objBatsman.Name            = objPlayer.Name;
                objBatsman.FullName        = objPlayer.FullName;
                objBatsman.Speciality      = objPlayer.Speciality;
                objBatsman.FullProfileLink = objPlayer.FullProfileLink;
                objBatsman.Image           = objPlayer.Image;
                objBatsman.Fours           = _objMatchDetails.score.batsman[i_BatsmanNo]._4s;
                objBatsman.Sixes           = _objMatchDetails.score.batsman[i_BatsmanNo]._6s;
                objBatsman.Balls           = _objMatchDetails.score.batsman[i_BatsmanNo].b;
                objBatsman.Runs            = _objMatchDetails.score.batsman[i_BatsmanNo].r;
                objBatsman.Strike          = _objMatchDetails.score.batsman[i_BatsmanNo].strike;
                if (objBatsman.Strike == "1")
                {
                    objBatsman.Name = objBatsman.Name + "*";
                }
                return(objBatsman);
            }
            catch (Exception)
            {
                return(null);
            }
        }
        private clsBowler GetBowlerDetails()
        {
            // Local variable
            clsBowler objBowler = null;
            clsPlayer objPlayer = null;
            string    playerID  = string.Empty;

            try
            {
                playerID = _objMatchDetails.score.bowler[0].id;
                //Getting player details
                objPlayer                 = GetMOMPlayerDetails(playerID);
                objBowler                 = new clsBowler();
                objBowler.Id              = objPlayer.Id;
                objBowler.Name            = objPlayer.Name;
                objBowler.FullName        = objPlayer.FullName;
                objBowler.Speciality      = objPlayer.Speciality;
                objBowler.FullProfileLink = objPlayer.FullProfileLink;
                objBowler.Image           = objPlayer.Image;
                objBowler.Maiden          = _objMatchDetails.score.bowler[0].m;
                objBowler.Overs           = _objMatchDetails.score.bowler[0].o;
                objBowler.Runs            = _objMatchDetails.score.bowler[0].r;
                objBowler.Wickets         = _objMatchDetails.score.bowler[0].w;
                return(objBowler);
            }
            catch (Exception)
            {
                return(null);
            }
        }
 private string GetLastWicket()
 {
     try
     {
         string    strLastOutBatsManDetails = string.Empty;
         clsPlayer objLastBatsMan           = GetMOMPlayerDetails(_objMatchDetails.score.last_wkt);
         return(objLastBatsMan.Name + " " + _objMatchDetails.score.last_wkt_score);
     }
     catch (Exception)
     {
         return(string.Empty);
     }
 }
        private clsPlayer GetMOMPlayerDetails(string i_PLayerID)
        {
            // Local variable
            clsPlayer objPlayerDetails = null;

            try
            {
                Player objPlayer = (Player)_objMatchDetails.players.Where(x => x.id == i_PLayerID).FirstOrDefault();
                objPlayerDetails                 = new clsPlayer();
                objPlayerDetails.Id              = objPlayer.id;
                objPlayerDetails.Name            = objPlayer.name;
                objPlayerDetails.FullName        = objPlayer.f_name;
                objPlayerDetails.Speciality      = objPlayer.speciality;
                objPlayerDetails.FullProfileLink = "https://www.cricbuzz.com/profiles/" + objPlayer.id;
                objPlayerDetails.Image           = "https://www.cricbuzz.com/stats/img/faceImages/" + objPlayer.id + ".jpg";
                return(objPlayerDetails);
            }
            catch (Exception)
            {
                return(null);
            }
        }