public void Init(ContestListInfo contest)
    {
        mContest = contest;

        string startTime = "";

        if (UtilMgr.IsMLB())
        {
            startTime = mContest.startTime;
        }
        else
        {
            startTime = mContest.korStartTime;
        }

        int year = int.Parse(startTime.Substring(0, 4));
        int mon  = int.Parse(startTime.Substring(4, 2));
        int day  = int.Parse(startTime.Substring(6, 2));
        int hour = int.Parse(startTime.Substring(8, 2));
        int min  = int.Parse(startTime.Substring(10, 2));
        int sec  = int.Parse(startTime.Substring(12, 2));

        mContestTime = new DateTime(year, mon, day, hour, min, sec);


        transform.localPosition = new Vector3(2000f, 2000f, 0);
        transform.gameObject.SetActive(true);
        mEntryEvent = new EntryListEvent(ReceivedEntry);
        NetMgr.EntryList(mContest.contestSeq, mEntryEvent);
    }
示例#2
0
    public void Init(ContestListInfo contestListInfo, Contest contest)
    {
        mContest         = contest;
        mContestListInfo = contestListInfo;
//		경기명 경기 방식 참여 가능 인원 필요 루비 경기 보상 순위별 보상
        mContent = "경기명 : " + contestListInfo.contestName;
        string matchType = contestListInfo.contestType == 1 ? "50 / 50s" : "Ranking";

        mContent += "\n\n경기 방식 : " + matchType;
        mContent += "\n\n참여 가능 인원 : " + contestListInfo.totalEntry;
        mContent += "\n\n필요 루비 : " + contestListInfo.entryFee;
        mContent += "\n\n경기 보상 : ";
        if (contestListInfo.totalReward == null || contestListInfo.totalReward.Equals("0"))
        {
        }
        else
        {
            mContent += contestListInfo.totalReward + " ";
        }
        mContent += contestListInfo.itemName;
        mContent += "\n\n순위별 보상";
        mContent += "\n\n" + contestListInfo.GetRewardText();

        transform.FindChild("Scroll View").FindChild("Label").GetComponent <UILabel>().text = mContent;
        transform.FindChild("Scroll View").FindChild("Label").GetComponent <BoxCollider2D>().size
            = transform.FindChild("Scroll View").FindChild("Label").GetComponent <UILabel>().localSize;
        transform.FindChild("Scroll View").GetComponent <UIScrollView>().ResetPosition();
    }
    public void InitRegisterEntry(ContestListInfo contestInfo)
    {
//		mContestSeq = contestSeq;
        mContestInfo = contestInfo;

        string startTime = null;

        if (UtilMgr.IsMLB())
        {
            startTime = mContestInfo.startTime;
        }
        else
        {
            startTime = mContestInfo.korStartTime;
        }

        int year = 0, mon = 0, day = 0, hour = 0, min = 0, sec = 0;

//		if(mContestInfo.startTime == null || mContestInfo.startTime.Length < 13){
//			mContestTime = new DateTime(2016, 1, 1, 1, 1, 1);
//		} else{
        year = int.Parse(startTime.Substring(0, 4));
        mon  = int.Parse(startTime.Substring(4, 2));
        day  = int.Parse(startTime.Substring(6, 2));
        hour = int.Parse(startTime.Substring(8, 2));
        min  = int.Parse(startTime.Substring(10, 2));
        sec  = int.Parse(startTime.Substring(12, 2));
//		}
        mContestTime = new DateTime(year, mon, day, hour, min, sec);


        string strMin = "" + min;

        if (min < 10)
        {
            strMin = "0" + min;
        }

        if (UtilMgr.IsMLB())
        {
            transform.FindChild("InfoTop").FindChild("Time").FindChild("LblLeft").GetComponent <UILabel>().text
                = "ET " + UtilMgr.GetAMPM(hour)[0] + ":" + strMin + " " + UtilMgr.GetAMPM(hour)[1] + " " + UtilMgr.GetLocalText("StrStart");
        }
        else
        {
            transform.FindChild("InfoTop").FindChild("Time").FindChild("LblLeft").GetComponent <UILabel>().text
                = "KST " + UtilMgr.GetAMPM(hour)[0] + ":" + strMin + " " + UtilMgr.GetAMPM(hour)[1] + " " + UtilMgr.GetLocalText("StrStart");
        }

        Initialize();
    }
    public void InitRegisterEntry(ContestListInfo contestInfo, LineupInfo lineup)
    {
        InitRegisterEntry(contestInfo);

        if (lineup == null)
        {
            return;
        }

        long [][] lineupArr = new long[2][] {
            new long[] { lineup.slot1, lineup.slot2, lineup.slot3, lineup.slot4, lineup.slot5,
                         lineup.slot6, lineup.slot7, lineup.slot8, lineup.slot9 },
            new long[] { lineup.item1, lineup.item2, lineup.item3, lineup.item4, lineup.item5,
                         lineup.item6, lineup.item7, lineup.item8, lineup.item9 },
        };

        for (int i = 0; i < lineupArr[0].Length; i++)
        {
            PlayerInfo playerInfo = UserMgr.PlayerDic[lineupArr[0][i]];
//			foreach(PlayerInfo info in UserMgr.PlayerList){
//				if(info.playerId == ){
//					playerInfo = info;
//					break;
//				}
//			}

            if (lineupArr[1][i] > 0)
            {
                playerInfo = MakePlayerCard(playerInfo);
            }

            transform.root.FindChild("SelectPlayer").GetComponent <SelectPlayer>().mSelectedNo = i + 1;
            SetDesignated(playerInfo);
        }

        if (lineup.name == null || lineup.name.Length < 1)
        {
            transform.FindChild("InfoTop").FindChild("NewEntry").FindChild("Input").GetComponent <UIInput>()
            .value = lineup.lineupName;
        }
        else
        {
            transform.FindChild("InfoTop").FindChild("NewEntry").FindChild("Input").GetComponent <UIInput>()
            .value = lineup.name;
        }

        mLineup = lineup;
    }
示例#5
0
 void SetContestType(ContestListInfo info, GameObject go)
 {
     if (info.featured == 1)        //special
     {
         go.transform.FindChild("Sprite").GetComponent <UISprite>().color = new Color(1f, 193f / 255f, 48f / 255f);
         go.transform.FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text = "S";
     }
     else if (info.contestType == 1)          //50
     {
         go.transform.FindChild("Sprite").GetComponent <UISprite>().color = new Color(147f / 255f, 212f / 255f, 91f / 255f);
         go.transform.FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text = "50";
     }
     else
     {
         go.transform.FindChild("Sprite").GetComponent <UISprite>().color = new Color(119f / 255f, 98f / 255f, 204f / 255f);
         go.transform.FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text = "R";
     }
 }
    public void Init(ContestListInfo contest)
    {
        mContest = contest;

        string startTime = "";
        if(UtilMgr.IsMLB()){
            startTime = mContest.startTime;
        } else
            startTime = mContest.korStartTime;

        int year = int.Parse(startTime.Substring(0, 4));
        int mon = int.Parse(startTime.Substring(4, 2));
        int day = int.Parse(startTime.Substring(6, 2));
        int hour = int.Parse(startTime.Substring(8, 2));
        int min = int.Parse(startTime.Substring(10, 2));
        int sec = int.Parse(startTime.Substring(12, 2));
        mContestTime = new DateTime(year, mon, day, hour, min, sec);

        transform.localPosition = new Vector3(2000f, 2000f, 0);
        transform.gameObject.SetActive(true);
        mEntryEvent = new EntryListEvent(ReceivedEntry);
        NetMgr.EntryList(mContest.contestSeq, mEntryEvent);
    }
示例#7
0
    void InitUpcomingList()
    {
        float      stackedHeight = 0f;
        GameObject go            = Instantiate(mItemBlank);

        go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
        go.transform.localPosition = new Vector3(0, 0);
        go.transform.localScale    = new Vector3(1f, 1f, 1f);
        stackedHeight -= 12f;

        for (int i = 0; i < mList.Count; i++)
        {
            ContestListInfo info = mList[i];

            if ((i == 0) || (mList[i - 1].startTime != info.startTime))
            {
                go = Instantiate(mItemUpcomingInfo);
                go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
                stackedHeight             -= 30f;
                go.transform.localPosition = new Vector3(0, stackedHeight);
                stackedHeight             -= 30f;
                go.transform.localScale    = new Vector3(1f, 1f, 1f);

                go.transform.FindChild("Time").FindChild("Label").GetComponent <UILabel>().text = info.gameDayString;
            }

            go = Instantiate(mItemUpcomingSub);
            go.transform.FindChild("BG").GetComponent <ItemMyContests>().mContestInfo = mList[i];
            go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
            stackedHeight             -= 276f / 2f;
            go.transform.localPosition = new Vector3(0, stackedHeight);
            stackedHeight             -= 276 / 2f;
            go.transform.localScale    = new Vector3(1f, 1f, 1f);

            if (Localization.language.Equals("English"))
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestName;
            }
            else
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestNameKor;
            }

            SetContestType(info, go.transform.FindChild("LblTitle").gameObject);

            go.transform.FindChild("LblEntries").FindChild("Label").GetComponent <UILabel>().text
                = "[333333][b]" + UtilMgr.AddsThousandsSeparator(info.totalJoin)
                  + "[/b][-][666666] / " + UtilMgr.AddsThousandsSeparator(info.totalEntry);
            go.transform.FindChild("LblTickets").FindChild("Label").GetComponent <UILabel>().text  = info.entryTicket + "";
            go.transform.FindChild("LblBasicRP").FindChild("Label").GetComponent <UILabel>().text  = "[333333]0";
            go.transform.FindChild("Lbl1stPrize").FindChild("Label").GetComponent <UILabel>().text = "[fc5034]"
                                                                                                     + info.firstRewardGold + "G";

            go.transform.FindChild("Lineup").FindChild("Label").GetComponent <UILabel>().text = info.entryPlayers;
            if ((info.lineupName != null) && (info.lineupName.Length > 0))
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(true);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -20f, 0);
                go.transform.FindChild("Lineup").FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text
                    = info.lineupName;
            }
            else
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(false);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -8f, 0);
            }
        }

        transform.FindChild("Body").FindChild("Scroll View").GetComponent <UIScrollView>().ResetPosition();
    }
示例#8
0
    void InitLiveList()
    {
        float      stackedHeight = 0f;
        GameObject go            = Instantiate(mItemBlank);

        go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
        go.transform.localPosition = new Vector3(0, 0);
        go.transform.localScale    = new Vector3(1f, 1f, 1f);
        stackedHeight -= 12f;
        float totalFP = 0;

        for (int i = 0; i < mList.Count; i++)
        {
            ContestListInfo info = mList[i];

            if ((i == 0) || (mList[i - 1].startTime != info.startTime))
            {
                go = Instantiate(mItemLiveInfo);
                go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
                stackedHeight             -= 36f;
                go.transform.localPosition = new Vector3(0, stackedHeight);
                stackedHeight             -= 36f;
                go.transform.localScale    = new Vector3(1f, 1f, 1f);

                go.transform.FindChild("Time").FindChild("Label").GetComponent <UILabel>().text = info.gameDayString;

                totalFP = 0;
                foreach (ContestListInfo info2 in mList)
                {
                    if (info.startTime == info2.startTime)
                    {
                        totalFP += info2.totalFantasy;
                    }
                }
                go.transform.FindChild("Time").FindChild("SprArrow").FindChild("Label").GetComponent <UILabel>().text
                    = string.Format("{0:F1}", totalFP);

                float ratio = info.gameOverPlayers / 9f;
                int   width = (int)(124 * ratio);
                go.transform.FindChild("Time").FindChild("SprArrow").FindChild("Panel").FindChild("Sprite")
                .GetComponent <UISprite>().width = width;
                go.transform.FindChild("Time").FindChild("SprArrow").FindChild("Panel").FindChild("Sprite")
                .localPosition = new Vector3(-((124 - width) / 2), 0);
            }

            go = Instantiate(mItemLiveSub);
            go.transform.FindChild("BG").GetComponent <ItemMyContests>().mContestInfo = mList[i];
            go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
            stackedHeight             -= 170f;
            go.transform.localPosition = new Vector3(0, stackedHeight);
            stackedHeight             -= 170f;
            go.transform.localScale    = new Vector3(1f, 1f, 1f);

            if (Localization.language.Equals("English"))
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestName;
            }
            else
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestNameKor;
            }

            SetContestType(info, go.transform.FindChild("LblTitle").gameObject);

            go.transform.FindChild("LblPosition").FindChild("Label").GetComponent <UILabel>().text
                = "[333333][b]" + UtilMgr.AddsThousandsSeparator(info.myRank)
                  + "[/b][-][666666] / " + UtilMgr.AddsThousandsSeparator(info.totalJoin);
            float ratioLoc = ((float)info.myRank) / ((float)info.totalJoin);
            go.transform.FindChild("Gauge").FindChild("Panel2").FindChild("SprPin").localPosition
                = new Vector3(((-672f * ratioLoc) + 336f), 16f);

            go.transform.FindChild("LblTickets").FindChild("Label").GetComponent <UILabel>().text  = info.entryTicket + "";
            go.transform.FindChild("LblBasicRP").FindChild("Label").GetComponent <UILabel>().text  = "[333333]0";
            go.transform.FindChild("Lbl1stPrize").FindChild("Label").GetComponent <UILabel>().text = "[fc5034]"
                                                                                                     + info.firstRewardGold + "G";
            go.transform.FindChild("Gauge").FindChild("Panel2").FindChild("SprPin").FindChild("Label").
            GetComponent <UILabel>().text = info.totalFantasy + "";

            go.transform.FindChild("Lineup").FindChild("Label").GetComponent <UILabel>().text = info.entryPlayers;
            if ((info.lineupName != null) && (info.lineupName.Length > 0))
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(true);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -20f, 0);
                go.transform.FindChild("Lineup").FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text
                    = info.lineupName;
            }
            else
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(false);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -8f, 0);
            }

            float rewardRatio = 0;
            if (info.contestType == 1)
            {
                rewardRatio = 0.5f;
            }
            else
            {
                rewardRatio = ((float)info.rewardCount) / ((float)info.totalJoin);
                if (rewardRatio > 1f)
                {
                    rewardRatio = 1f;
                }
            }

            float widthf = 672f * rewardRatio;
            float diff   = (672f - widthf) / 2f;

            go.transform.FindChild("Gauge").FindChild("Panel").GetComponent <UIPanel>().SetRect(widthf, 70f);
            go.transform.FindChild("Gauge").FindChild("Panel").localPosition = new Vector3(diff, 26f);
            go.transform.FindChild("Gauge").FindChild("Panel")
            .FindChild("SprGaugeFront").localPosition = new Vector3(-diff, 0);
        }

        transform.FindChild("Body").FindChild("Scroll View").GetComponent <UIScrollView>().ResetPosition();
    }
示例#9
0
    void InitRecentList()
    {
        float      stackedHeight = 0f;
        GameObject go            = Instantiate(mItemBlank);

        go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
        go.transform.localPosition = new Vector3(0, 0);
        go.transform.localScale    = new Vector3(1f, 1f, 1f);
        stackedHeight -= 12f;
        float totalFP = 0;

        for (int i = 0; i < mList.Count; i++)
        {
            ContestListInfo info = mList[i];

            if ((i == 0) || (mList[i - 1].startTime != info.startTime))
            {
                go = Instantiate(mItemSettledInfo);
                go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
                stackedHeight             -= 36f;
                go.transform.localPosition = new Vector3(0, stackedHeight);
                stackedHeight             -= 36f;
                go.transform.localScale    = new Vector3(1f, 1f, 1f);

                go.transform.FindChild("Time").FindChild("Label").GetComponent <UILabel>().text = info.gameDayString;

                totalFP = 0;
                foreach (ContestListInfo info2 in mList)
                {
                    if (info.startTime == info2.startTime)
                    {
                        totalFP += info2.totalFantasy;
                    }
                }
                go.transform.FindChild("Time").FindChild("SprArrow").FindChild("Label").GetComponent <UILabel>().text
                    = string.Format("{0:F1}", totalFP);
            }

            go = Instantiate(mItemSettledSub);
            go.transform.FindChild("BG").GetComponent <ItemMyContests>().mContestInfo = mList[i];
            go.transform.parent        = transform.FindChild("Body").FindChild("Scroll View");
            stackedHeight             -= 276f / 2f;
            go.transform.localPosition = new Vector3(0, stackedHeight);
            stackedHeight             -= 276 / 2f;
            go.transform.localScale    = new Vector3(1f, 1f, 1f);

            if (Localization.language.Equals("English"))
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestName;
            }
            else
            {
                go.transform.FindChild("LblTitle").GetComponent <UILabel>().text = info.contestNameKor;
            }

            SetContestType(info, go.transform.FindChild("LblTitle").gameObject);

            go.transform.FindChild("LblPosition").FindChild("Label").GetComponent <UILabel>().text
                = "[333333][b]" + UtilMgr.AddsThousandsSeparator(info.myRank)
                  + "[/b][-][666666] / " + UtilMgr.AddsThousandsSeparator(info.totalJoin);
            go.transform.FindChild("LblTickets").FindChild("Label").GetComponent <UILabel>().text = info.entryTicket + "";

            go.transform.FindChild("LblEarnedRP").FindChild("Label").GetComponent <UILabel>().text = "[333333]"
                                                                                                     + info.myRewardRP + "RP";
            go.transform.FindChild("LblEarnedGold").FindChild("Label").GetComponent <UILabel>().text = "[fc5034]"
                                                                                                       + info.myRewardGold + "G";

            go.transform.FindChild("Lineup").FindChild("Label").GetComponent <UILabel>().text = info.entryPlayers;
            if ((info.lineupName != null) && (info.lineupName.Length > 0))
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(true);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -20f, 0);
                go.transform.FindChild("Lineup").FindChild("Sprite").FindChild("Label").GetComponent <UILabel>().text
                    = info.lineupName;
            }
            else
            {
                go.transform.FindChild("Lineup").FindChild("Sprite").gameObject.SetActive(false);
                go.transform.FindChild("Lineup").FindChild("Label").localPosition = new Vector3(0, -8f, 0);
            }
        }

        transform.FindChild("Body").FindChild("Scroll View").GetComponent <UIScrollView>().ResetPosition();
    }
    public void SetContestSeq(ContestListInfo contestInfo)
    {
//		mContestSeq = contestSeq;
        mContestInfo = contestInfo;
    }
 public void SetContestSeq(ContestListInfo contestInfo)
 {
     //		mContestSeq = contestSeq;
     mContestInfo = contestInfo;
 }
示例#12
0
    static List <ContestListInfo> GetSortedList()
    {
        List <ContestListInfo> infoList = new List <ContestListInfo>();

        if (SubInSub.SelectedTeamname.Equals("모든 팀"))
        {
            foreach (ContestListInfo cInfo in UserMgr.ContestList)
            {
                infoList.Add(cInfo);
            }
        }
        else
        {
            foreach (ContestListInfo cInfo in UserMgr.ContestList)
            {
                if (cInfo.aTeamName.Equals(SubInSub.SelectedTeamname) ||
                    cInfo.hTeamName.Equals(SubInSub.SelectedTeamname))
                {
                    infoList.Add(cInfo);
                }
            }
        }

        if (SubInSub.SelectedKind == 1)        //ranking
        {
            for (int i = 0; i < infoList.Count; i++)
            {
                ContestListInfo cInfo = infoList[i];
                if (cInfo.contestType == 1)
                {
                    infoList.RemoveAt(i);
                    i--;
                }
            }
        }
        else if (SubInSub.SelectedKind == 2)          //50
        {
            for (int i = 0; i < infoList.Count; i++)
            {
                ContestListInfo cInfo = infoList[i];
                if (cInfo.contestType == 2)
                {
                    infoList.RemoveAt(i);
                    i--;
                }
            }
        }
//		Debug.Log("SubInSub.SelectedFeeLow is "+SubInSub.SelectedFeeLow);
//		Debug.Log("SubInSub.SelectedFeeHigh is "+SubInSub.SelectedFeeHigh);
        if (SubInSub.SelectedFeeLow > 0)
        {
            for (int i = 0; i < infoList.Count; i++)
            {
                ContestListInfo cInfo = infoList[i];
                if (cInfo.entryFee < SubInSub.SelectedFeeLow)
                {
                    infoList.RemoveAt(i);
                    i--;
                }
            }
        }
        if (SubInSub.SelectedFeeHigh < 1000)
        {
            for (int i = 0; i < infoList.Count; i++)
            {
                ContestListInfo cInfo = infoList[i];
                if (cInfo.entryFee > SubInSub.SelectedFeeHigh)
                {
                    infoList.RemoveAt(i);
                    i--;
                }
            }
        }

        if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.PeopleAsc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(x.totalPreset.CompareTo(y.totalPreset));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.PeopleDesc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(y.totalPreset.CompareTo(x.totalPreset));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.NameAsc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(x.contestName.CompareTo(y.contestName));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.NameDesc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(y.contestName.CompareTo(x.contestName));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.TotalAsc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(x.totalEntry.CompareTo(y.totalEntry));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.TotalDesc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(y.totalEntry.CompareTo(x.totalEntry));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.FeeAsc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(x.entryFee.CompareTo(y.entryFee));
            });
        }
        else if (SubInSub.SelectedPeople == SubInSub.PeopleSorting.FeeDesc)
        {
            infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
                return(y.entryFee.CompareTo(x.entryFee));
            });
        }

        //featured
        infoList.Sort(delegate(ContestListInfo x, ContestListInfo y) {
            return(y.featured.CompareTo(x.featured));
        });



        return(infoList);
    }