Example #1
0
        private TeamStatistics GetTeamStatistics(string teamContent)
        {
            TeamStatistics team = new TeamStatistics();

            team.accurate_back_zone_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_BACK_ZONE_PASS));
            team.accurate_chipped_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_CHIPPED_PASS));
            team.accurate_corners_intobox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_CORNERS_INTOBOX));
            team.accurate_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_CROSS));
            team.accurate_cross_nocorner = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_CROSS_NOCORNER));
            team.accurate_flick_on = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_FLICK_ON));
            team.accurate_freekick_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_FREEKICK_CROSS));
            team.accurate_fwd_zone_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_FWD_ZONE_PASS));
            team.accurate_goal_kicks = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_GOAL_KICKS));
            team.accurate_keeper_sweeper = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_KEEPER_SWEEPER));
            team.accurate_keeper_throws = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_KEEPER_THROWS));
            team.accurate_launches = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_LAUNCHES));
            team.accurate_layoffs = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_LAYOFFS));
            team.accurate_long_balls = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_LONG_BALLS));
            team.accurate_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_PASS));
            team.accurate_through_ball = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_THROUGH_BALL));
            team.accurate_throws = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ACCURATE_THROWS));
            team.aerial_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.AERIAL_LOST));
            team.aerial_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.AERIAL_WON));
            team.att_assist_openplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_ASSIST_OPENPLAY));
            team.att_assist_setplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_ASSIST_SETPLAY));
            team.att_bx_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_BX_CENTRE));
            team.att_bx_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_BX_LEFT));
            team.att_bx_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_BX_RIGHT));
            team.att_cmiss_high = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_CMISS_HIGH));
            team.att_cmiss_high_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_CMISS_HIGH_RIGHT));
            team.att_cmiss_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_CMISS_LEFT));
            team.att_cmiss_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_CMISS_RIGHT));
            team.att_fastbreak = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FASTBREAK));
            team.att_freekick_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FREEKICK_GOAL));
            team.att_freekick_miss = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FREEKICK_MISS));
            team.att_freekick_post = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FREEKICK_POST));
            team.att_freekick_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FREEKICK_TARGET));
            team.att_freekick_total = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_FREEKICK_TOTAL));
            team.att_goal_high_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_GOAL_HIGH_LEFT));
            team.att_goal_high_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_GOAL_HIGH_RIGHT));
            team.att_goal_low_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_GOAL_LOW_CENTRE));
            team.att_goal_low_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_GOAL_LOW_LEFT));
            team.att_goal_low_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_GOAL_LOW_RIGHT));
            team.att_hd_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_HD_GOAL));
            team.att_hd_miss = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_HD_MISS));
            team.att_hd_post = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_HD_POST));
            team.att_hd_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_HD_TARGET));
            team.att_hd_total = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_HD_TOTAL));
            team.att_ibox_blocked = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_IBOX_BLOCKED));
            team.att_ibox_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_IBOX_GOAL));
            team.att_ibox_miss = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_IBOX_MISS));
            team.att_ibox_post = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_IBOX_POST));
            team.att_ibox_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_IBOX_TARGET));
            team.att_lf_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_LF_GOAL));
            team.att_lf_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_LF_TARGET));
            team.att_lf_total = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_LF_TOTAL));
            team.att_lg_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_LG_CENTRE));
            team.att_miss_high = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_MISS_HIGH));
            team.att_miss_high_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_MISS_HIGH_LEFT));
            team.att_miss_high_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_MISS_HIGH_RIGHT));
            team.att_miss_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_MISS_LEFT));
            team.att_miss_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_MISS_RIGHT));
            team.att_obox_blocked = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBOX_BLOCKED));
            team.att_obox_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBOX_GOAL));
            team.att_obox_miss = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBOX_MISS));
            team.att_obox_post = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBOX_POST));
            team.att_obox_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBOX_TARGET));
            team.att_obx_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBX_CENTRE));
            team.att_obx_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBX_LEFT));
            team.att_obxd_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OBXD_RIGHT));
            team.att_one_on_one = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_ONE_ON_ONE));
            team.att_openplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_OPENPLAY));
            team.att_pen_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_PEN_GOAL));
            team.att_pen_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_PEN_TARGET));
            team.att_post_high = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_POST_HIGH));
            team.att_post_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_POST_RIGHT));
            team.att_rf_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_RF_GOAL));
            team.att_rf_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_RF_TARGET));
            team.att_rf_total = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_RF_TOTAL));
            team.att_setpiece = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SETPIECE));
            team.att_sv_high_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_HIGH_CENTRE));
            team.att_sv_high_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_HIGH_LEFT));
            team.att_sv_high_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_HIGH_RIGHT));
            team.att_sv_low_centre = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_LOW_CENTRE));
            team.att_sv_low_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_LOW_LEFT));
            team.att_sv_low_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATT_SV_LOW_RIGHT));
            team.attempted_tackle_foul = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATTEMPTED_TACKLE_FOUL));
            team.attempts_conceded_ibox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATTEMPTS_CONCEDED_IBOX));
            team.attempts_conceded_obox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ATTEMPTS_CONCEDED_OBOX));
            team.backward_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BACKWARD_PASS));
            team.ball_recovery = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BALL_RECOVERY));
            team.big_chance_created = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BIG_CHANCE_CREATED));
            team.big_chance_missed = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BIG_CHANCE_MISSED));
            team.big_chance_scored = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BIG_CHANCE_SCORED));
            team.blocked_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BLOCKED_CROSS));
            team.blocked_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BLOCKED_PASS));
            team.blocked_scoring_att = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.BLOCKED_SCORING_ATT));
            team.challenge_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CHALLENGE_LOST));
            team.clean_sheet = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CLEAN_SHEET));
            team.clearance_off_line = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CLEARANCE_OFF_LINE));
            team.contentious_decision = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CONTENTIOUS_DECISION));
            team.corner_taken = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CORNER_TAKEN));
            team.cross_inaccurate = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CROSS_INACCURATE));
            team.crosses_18yard = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CROSSES_18YARD));
            team.crosses_18yardplus = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.CROSSES_18YARDPLUS));
            team.defender_goals = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DEFENDER_GOALS));
            team.dispossessed = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DISPOSSESSED));
            team.diving_save = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DIVING_SAVE));
            team.dribble_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DRIBBLE_LOST));
            team.duel_ground_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DUEL_GROUND_LOST));
            team.duel_ground_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DUEL_GROUND_WON));
            team.duel_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DUEL_LOST));
            team.duel_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.DUEL_WON));
            team.effective_blocked_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.EFFECTIVE_BLOCKED_CROSS));
            team.effective_clearance = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.EFFECTIVE_CLEARANCE));
            team.effective_head_clearance = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.EFFECTIVE_HEAD_CLEARANCE));
            team.error_lead_to_goal = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ERROR_LEAD_TO_GOAL));
            team.error_lead_to_shot = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ERROR_LEAD_TO_SHOT));
            team.failed_to_block = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FAILED_TO_BLOCK));
            team.fifty_fifty = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FIFTY_FIFTY));
            team.final_third_entries = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FINAL_THIRD_ENTRIES));
            team.first_half_goals = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FIRST_HALF_GOALS));
            team.fk_foul_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FK_FOUL_LOST));
            team.fk_foul_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FK_FOUL_WON));
            team.formation_used = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FORMATION_USED));
            team.forward_goals = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FORWARD_GOALS));
            team.fouled_final_third = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FOULED_FINAL_THIRD));
            team.freekick_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FREEKICK_CROSS));
            team.fwd_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.FWD_PASS));
            team.goal_assist = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_ASSIST));
            team.goal_assist_intentional = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_ASSIST_INTENTIONAL));
            team.goal_assist_openplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_ASSIST_OPENPLAY));
            team.goal_assist_setplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_ASSIST_SETPLAY));
            team.goal_fastbreak = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_FASTBREAK));
            team.goal_kicks = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOAL_KICKS));
            team.goals = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOALS));
            team.goals_conceded = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOALS_CONCEDED));
            team.goals_conceded_ibox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOALS_CONCEDED_IBOX));
            team.goals_conceded_obox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOALS_CONCEDED_OBOX));
            team.goals_openplay = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOALS_OPENPLAY));
            team.good_high_claim = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.GOOD_HIGH_CLAIM));
            team.hand_ball = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.HAND_BALL));
            team.head_clearance = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.HEAD_CLEARANCE));
            team.hit_woodwork = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.HIT_WOODWORK));
            team.interception = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.INTERCEPTION));
            team.interception_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.INTERCEPTION_WON));
            team.interceptions_in_box = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.INTERCEPTIONS_IN_BOX));
            team.keeper_throws = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.KEEPER_THROWS));
            team.last_man_tackle = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.LAST_MAN_TACKLE));
            team.leftside_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.LEFTSIDE_PASS));
            team.long_pass_own_to_opp = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.LONG_PASS_OWN_TO_OPP));
            team.long_pass_own_to_opp_success = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.LONG_PASS_OWN_TO_OPP_SUCCESS));
            team.lost_corners = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.LOST_CORNERS));
            team.midfielder_goals = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.MIDFIELDER_GOALS));
            team.offtarget_att_assist = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.OFFTARGET_ATT_ASSIST));
            team.ontarget_att_assist = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ONTARGET_ATT_ASSIST));
            team.ontarget_scoring_att = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.ONTARGET_SCORING_ATT));
            team.open_play_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.OPEN_PLAY_PASS));
            team.outfielder_block = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.OUTFIELDER_BLOCK));
            team.overrun = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.OVERRUN));
            team.passes_left = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PASSES_LEFT));
            team.passes_right = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PASSES_RIGHT));
            team.pen_area_entries = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PEN_AREA_ENTRIES));
            team.pen_goals_conceded = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PEN_GOALS_CONCEDED));
            team.penalty_conceded = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PENALTY_CONCEDED));
            team.penalty_faced = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PENALTY_FACED));
            team.penalty_missed = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PENALTY_MISSED));
            team.penalty_save = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PENALTY_SAVE));
            team.penalty_won = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PENALTY_WON));
            team.poss_lost_all = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSS_LOST_ALL));
            team.poss_lost_ctrl = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSS_LOST_CTRL));
            team.poss_won_att_3rd = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSS_WON_ATT_3RD));
            team.poss_won_def_3rd = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSS_WON_DEF_3RD));
            team.poss_won_mid_3rd = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSS_WON_MID_3RD));
            team.possession_percentage = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POSSESSION_PERCENTAGE));
            team.post_scoring_att = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.POST_SCORING_ATT));
            team.punches = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PUNCHES));
            team.put_through = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.PUT_THROUGH));
            team.rightside_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.RIGHTSIDE_PASS));
            team.saved_ibox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SAVED_IBOX));
            team.saved_obox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SAVED_OBOX));
            team.saves = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SAVES));
            team.second_yellow = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SECOND_YELLOW));
            team.shield_ball_oop = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SHIELD_BALL_OOP));
            team.shot_fastbreak = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SHOT_FASTBREAK));
            team.shot_off_target = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SHOT_OFF_TARGET));
            team.six_yard_block = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SIX_YARD_BLOCK));
            team.subs_made = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SUBS_MADE));
            team.successful_fifty_fifty = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SUCCESSFUL_FIFTY_FIFTY));
            team.successful_final_third_passes = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SUCCESSFUL_FINAL_THIRD_PASSES));
            team.successful_open_play_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SUCCESSFUL_OPEN_PLAY_PASS));
            team.successful_put_through = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.SUCCESSFUL_PUT_THROUGH));
            team.tackle_lost = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TACKLE_LOST));
            team.total_att_assist = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_ATT_ASSIST));
            team.total_back_zone_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_BACK_ZONE_PASS));
            team.total_chipped_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CHIPPED_PASS));
            team.total_clearance = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CLEARANCE));
            team.total_contest = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CONTEST));
            team.total_corners_intobox = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CORNERS_INTOBOX));
            team.total_cross = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CROSS));
            team.total_cross_nocorner = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_CROSS_NOCORNER));
            team.total_fastbreak = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_FASTBREAK));
            team.total_final_third_passes = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_FINAL_THIRD_PASSES));
            team.total_flick_on = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_FLICK_ON));
            team.total_fwd_zone_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_FWD_ZONE_PASS));
            team.total_high_claim = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_HIGH_CLAIM));
            team.total_keeper_sweeper = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_KEEPER_SWEEPER));
            team.total_launches = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_LAUNCHES));
            team.total_layoffs = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_LAYOFFS));
            team.total_long_balls = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_LONG_BALLS));
            team.total_offside = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_OFFSIDE));
            team.total_pass = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_PASS));
            team.total_pull_back = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_PULL_BACK));
            team.total_red_card = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_RED_CARD));
            team.total_scoring_att = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_SCORING_ATT));
            team.total_tackle = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_TACKLE));
            team.total_through_ball = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_THROUGH_BALL));
            team.total_throws = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_THROWS));
            team.total_yel_card = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOTAL_YEL_CARD));
            team.touches = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.TOUCHES));
            team.unsuccessful_touch = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.UNSUCCESSFUL_TOUCH));
            team.won_contest = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.WON_CONTEST));
            team.won_corners = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.WON_CORNERS));
            team.won_tackle = float.Parse(GetStatistics(teamContent, TeamStatisticsFilter.WON_TACKLE));

            return team;
        }
Example #2
0
 private static void InsertTeamStatistics(TeamStatistics team, string league, int matchID, bool home)
 {
     string teamStatisticsSQL = @"INSERT INTO TeamStatistics (team_id, team_name, league, match_id, home, rating, accurate_back_zone_pass, accurate_chipped_pass, accurate_corners_intobox, accurate_cross, accurate_cross_nocorner, accurate_flick_on, accurate_freekick_cross, accurate_fwd_zone_pass, accurate_goal_kicks, accurate_keeper_sweeper, accurate_keeper_throws, accurate_launches, accurate_layoffs, accurate_long_balls, accurate_pass, accurate_through_ball, accurate_throws, aerial_lost, aerial_won, att_assist_openplay, att_assist_setplay, att_bx_centre, att_bx_left, att_bx_right, att_cmiss_high, att_cmiss_high_right, att_cmiss_left, att_cmiss_right, att_fastbreak, att_freekick_goal, att_freekick_miss, att_freekick_post, att_freekick_target, att_freekick_total, att_goal_high_left, att_goal_high_right, att_goal_low_centre, att_goal_low_left, att_goal_low_right, att_hd_goal, att_hd_miss, att_hd_post, att_hd_target, att_hd_total, att_ibox_blocked, att_ibox_goal, att_ibox_miss, att_ibox_post, att_ibox_target, att_lf_goal, att_lf_target, att_lf_total, att_lg_centre, att_miss_high, att_miss_high_left, att_miss_high_right, att_miss_left, att_miss_right, att_obox_blocked, att_obox_goal, att_obox_miss, att_obox_post, att_obox_target, att_obx_centre, att_obx_left, att_obxd_right, att_one_on_one, att_openplay, att_pen_goal, att_pen_target, att_post_high, att_post_right, att_rf_goal, att_rf_target, att_rf_total, att_setpiece, att_sv_high_centre, att_sv_high_left, att_sv_high_right, att_sv_low_centre, att_sv_low_left, att_sv_low_right, attempted_tackle_foul, attempts_conceded_ibox, attempts_conceded_obox, backward_pass, ball_recovery, big_chance_created, big_chance_missed, big_chance_scored, blocked_cross, blocked_pass, blocked_scoring_att, challenge_lost, clean_sheet, clearance_off_line, contentious_decision, corner_taken, cross_inaccurate, crosses_18yard, crosses_18yardplus, defender_goals, dispossessed, diving_save, dribble_lost, duel_ground_lost, duel_ground_won, duel_lost, duel_won, effective_blocked_cross, effective_clearance, effective_head_clearance, error_lead_to_goal, error_lead_to_shot, failed_to_block, fifty_fifty, final_third_entries, first_half_goals, fk_foul_lost, fk_foul_won, formation_used, forward_goals, fouled_final_third, freekick_cross, fwd_pass, goal_assist, goal_assist_intentional, goal_assist_openplay, goal_assist_setplay, goal_fastbreak, goal_kicks, goals, goals_conceded, goals_conceded_ibox, goals_conceded_obox, goals_openplay, good_high_claim, hand_ball, head_clearance, hit_woodwork, interception, interception_won, interceptions_in_box, keeper_throws, last_man_tackle, leftside_pass, long_pass_own_to_opp, long_pass_own_to_opp_success, lost_corners, midfielder_goals, offtarget_att_assist, ontarget_att_assist, ontarget_scoring_att, open_play_pass, outfielder_block, overrun, passes_left, passes_right, pen_area_entries, pen_goals_conceded, penalty_conceded, penalty_faced, penalty_missed, penalty_save, penalty_won, poss_lost_all, poss_lost_ctrl, poss_won_att_3rd, poss_won_def_3rd, poss_won_mid_3rd, possession_percentage, post_scoring_att, punches, put_through, rightside_pass, saved_ibox, saved_obox, saves, second_yellow, shield_ball_oop, shot_fastbreak, shot_off_target, six_yard_block, subs_made, successful_fifty_fifty, successful_final_third_passes, successful_open_play_pass, successful_put_through, tackle_lost, total_att_assist, total_back_zone_pass, total_chipped_pass, total_clearance, total_contest, total_corners_intobox, total_cross, total_cross_nocorner, total_fastbreak, total_final_third_passes, total_flick_on, total_fwd_zone_pass, total_high_claim, total_keeper_sweeper, total_launches, total_layoffs, total_long_balls, total_offside, total_pass, total_pull_back, total_red_card, total_scoring_att, total_tackle, total_through_ball, total_throws, total_yel_card, touches, unsuccessful_touch, won_contest, won_corners, won_tackle) VALUES (" + team.id + ", '" + team.name + "', '" + league + "', " + matchID + ", " + home + ", " + team.rating + ", " + team.accurate_back_zone_pass + ", " + team.accurate_chipped_pass + ", " + team.accurate_corners_intobox + ", " + team.accurate_cross + ", " + team.accurate_cross_nocorner + ", " + team.accurate_flick_on + ", " + team.accurate_freekick_cross + ", " + team.accurate_fwd_zone_pass + ", " + team.accurate_goal_kicks + ", " + team.accurate_keeper_sweeper + ", " + team.accurate_keeper_throws + ", " + team.accurate_launches + ", " + team.accurate_layoffs + ", " + team.accurate_long_balls + ", " + team.accurate_pass + ", " + team.accurate_through_ball + ", " + team.accurate_throws + ", " + team.aerial_lost + ", " + team.aerial_won + ", " + team.att_assist_openplay + ", " + team.att_assist_setplay + ", " + team.att_bx_centre + ", " + team.att_bx_left + ", " + team.att_bx_right + ", " + team.att_cmiss_high + ", " + team.att_cmiss_high_right + ", " + team.att_cmiss_left + ", " + team.att_cmiss_right + ", " + team.att_fastbreak + ", " + team.att_freekick_goal + ", " + team.att_freekick_miss + ", " + team.att_freekick_post + ", " + team.att_freekick_target + ", " + team.att_freekick_total + ", " + team.att_goal_high_left + ", " + team.att_goal_high_right + ", " + team.att_goal_low_centre + ", " + team.att_goal_low_left + ", " + team.att_goal_low_right + ", " + team.att_hd_goal + ", " + team.att_hd_miss + ", " + team.att_hd_post + ", " + team.att_hd_target + ", " + team.att_hd_total + ", " + team.att_ibox_blocked + ", " + team.att_ibox_goal + ", " + team.att_ibox_miss + ", " + team.att_ibox_post + ", " + team.att_ibox_target + ", " + team.att_lf_goal + ", " + team.att_lf_target + ", " + team.att_lf_total + ", " + team.att_lg_centre + ", " + team.att_miss_high + ", " + team.att_miss_high_left + ", " + team.att_miss_high_right + ", " + team.att_miss_left + ", " + team.att_miss_right + ", " + team.att_obox_blocked + ", " + team.att_obox_goal + ", " + team.att_obox_miss + ", " + team.att_obox_post + ", " + team.att_obox_target + ", " + team.att_obx_centre + ", " + team.att_obx_left + ", " + team.att_obxd_right + ", " + team.att_one_on_one + ", " + team.att_openplay + ", " + team.att_pen_goal + ", " + team.att_pen_target + ", " + team.att_post_high + ", " + team.att_post_right + ", " + team.att_rf_goal + ", " + team.att_rf_target + ", " + team.att_rf_total + ", " + team.att_setpiece + ", " + team.att_sv_high_centre + ", " + team.att_sv_high_left + ", " + team.att_sv_high_right + ", " + team.att_sv_low_centre + ", " + team.att_sv_low_left + ", " + team.att_sv_low_right + ", " + team.attempted_tackle_foul + ", " + team.attempts_conceded_ibox + ", " + team.attempts_conceded_obox + ", " + team.backward_pass + ", " + team.ball_recovery + ", " + team.big_chance_created + ", " + team.big_chance_missed + ", " + team.big_chance_scored + ", " + team.blocked_cross + ", " + team.blocked_pass + ", " + team.blocked_scoring_att + ", " + team.challenge_lost + ", " + team.clean_sheet + ", " + team.clearance_off_line + ", " + team.contentious_decision + ", " + team.corner_taken + ", " + team.cross_inaccurate + ", " + team.crosses_18yard + ", " + team.crosses_18yardplus + ", " + team.defender_goals + ", " + team.dispossessed + ", " + team.diving_save + ", " + team.dribble_lost + ", " + team.duel_ground_lost + ", " + team.duel_ground_won + ", " + team.duel_lost + ", " + team.duel_won + ", " + team.effective_blocked_cross + ", " + team.effective_clearance + ", " + team.effective_head_clearance + ", " + team.error_lead_to_goal + ", " + team.error_lead_to_shot + ", " + team.failed_to_block + ", " + team.fifty_fifty + ", " + team.final_third_entries + ", " + team.first_half_goals + ", " + team.fk_foul_lost + ", " + team.fk_foul_won + ", " + team.formation_used + ", " + team.forward_goals + ", " + team.fouled_final_third + ", " + team.freekick_cross + ", " + team.fwd_pass + ", " + team.goal_assist + ", " + team.goal_assist_intentional + ", " + team.goal_assist_openplay + ", " + team.goal_assist_setplay + ", " + team.goal_fastbreak + ", " + team.goal_kicks + ", " + team.goals + ", " + team.goals_conceded + ", " + team.goals_conceded_ibox + ", " + team.goals_conceded_obox + ", " + team.goals_openplay + ", " + team.good_high_claim + ", " + team.hand_ball + ", " + team.head_clearance + ", " + team.hit_woodwork + ", " + team.interception + ", " + team.interception_won + ", " + team.interceptions_in_box + ", " + team.keeper_throws + ", " + team.last_man_tackle + ", " + team.leftside_pass + ", " + team.long_pass_own_to_opp + ", " + team.long_pass_own_to_opp_success + ", " + team.lost_corners + ", " + team.midfielder_goals + ", " + team.offtarget_att_assist + ", " + team.ontarget_att_assist + ", " + team.ontarget_scoring_att + ", " + team.open_play_pass + ", " + team.outfielder_block + ", " + team.overrun + ", " + team.passes_left + ", " + team.passes_right + ", " + team.pen_area_entries + ", " + team.pen_goals_conceded + ", " + team.penalty_conceded + ", " + team.penalty_faced + ", " + team.penalty_missed + ", " + team.penalty_save + ", " + team.penalty_won + ", " + team.poss_lost_all + ", " + team.poss_lost_ctrl + ", " + team.poss_won_att_3rd + ", " + team.poss_won_def_3rd + ", " + team.poss_won_mid_3rd + ", " + team.possession_percentage + ", " + team.post_scoring_att + ", " + team.punches + ", " + team.put_through + ", " + team.rightside_pass + ", " + team.saved_ibox + ", " + team.saved_obox + ", " + team.saves + ", " + team.second_yellow + ", " + team.shield_ball_oop + ", " + team.shot_fastbreak + ", " + team.shot_off_target + ", " + team.six_yard_block + ", " + team.subs_made + ", " + team.successful_fifty_fifty + ", " + team.successful_final_third_passes + ", " + team.successful_open_play_pass + ", " + team.successful_put_through + ", " + team.tackle_lost + ", " + team.total_att_assist + ", " + team.total_back_zone_pass + ", " + team.total_chipped_pass + ", " + team.total_clearance + ", " + team.total_contest + ", " + team.total_corners_intobox + ", " + team.total_cross + ", " + team.total_cross_nocorner + ", " + team.total_fastbreak + ", " + team.total_final_third_passes + ", " + team.total_flick_on + ", " + team.total_fwd_zone_pass + ", " + team.total_high_claim + ", " + team.total_keeper_sweeper + ", " + team.total_launches + ", " + team.total_layoffs + ", " + team.total_long_balls + ", " + team.total_offside + ", " + team.total_pass + ", " + team.total_pull_back + ", " + team.total_red_card + ", " + team.total_scoring_att + ", " + team.total_tackle + ", " + team.total_through_ball + ", " + team.total_throws + ", " + team.total_yel_card + ", " + team.touches + ", " + team.unsuccessful_touch + ", " + team.won_contest + ", " + team.won_corners + ", " + team.won_tackle + ")";
     int ret = MySqlHelper.ExecuteNonQuery(MySqlHelper.Conn, CommandType.Text, teamStatisticsSQL, null);
 }