Exemplo n.º 1
0
    public static GP_TBM_Match ParceMatchInfo(string[] MatchData, int index)
    {
        GP_TBM_Match mtach = new GP_TBM_Match();

        mtach.Id                      = MatchData[index];
        mtach.RematchId               = MatchData[index + 1];
        mtach.Description             = MatchData[index + 2];
        mtach.AvailableAutoMatchSlots = Convert.ToInt32(MatchData[index + 3]);
        mtach.CreationTimestamp       = Convert.ToInt64(MatchData[index + 4]);
        mtach.CreatorId               = MatchData[index + 5];
        mtach.LastUpdatedTimestamp    = Convert.ToInt64(MatchData[index + 6]);
        mtach.LastUpdaterId           = MatchData[index + 7];
        mtach.MatchNumber             = Convert.ToInt32(MatchData[index + 8]);
        mtach.Status                  = (GP_TBM_MatchStatus)Convert.ToInt32(MatchData[index + 9]);
        mtach.TurnStatus              = (GP_TBM_MatchTurnStatus)Convert.ToInt32(MatchData[index + 10]);
        mtach.CanRematch              = Convert.ToBoolean(MatchData[index + 11]);
        mtach.Variant                 = Convert.ToInt32(MatchData[index + 12]);
        mtach.Version                 = Convert.ToInt32(MatchData[index + 13]);

        mtach.SetData(MatchData[index + 14]);
        mtach.SetPreviousMatchData(MatchData[index + 15]);
        mtach.PendingParticipantId = MatchData[index + 16];
        mtach.Participants         = GooglePlayManager.ParseParticipantsData(MatchData, index + 17);

        return(mtach);
    }