Ejemplo n.º 1
0
        //public delegate void AllRichFriendsFetchedEventHandler(Collection<FriendInfo> allbigslotfriends);
        //public event AllRichFriendsFetchedEventHandler AllRichFriendsFetched;

        //public delegate void MyAssetsFetchedEventHandler(Collection<MyAssetInfo> myassets);
        //public event MyAssetsFetchedEventHandler MyAssetsFetched;

        public GameRich()
        {
            this._allRichFriendsList = new Collection<FriendInfo>();            
            this._myAssetsList = new Collection<MyAssetInfo>();
            this._assetsMarketList = new Collection<AssetInfo>();
            this._assetsList = new Collection<AssetInfo>();
            this._canbuyasset = true;
            this._cantransaction = true;
            this._transactedasset = false;
            this._isfirsttimebuy = true;
            this._myFortuneRank = FortuneRank.Worker;
        }
Ejemplo n.º 2
0
        //public delegate void AllRichFriendsFetchedEventHandler(Collection<FriendInfo> allbigslotfriends);
        //public event AllRichFriendsFetchedEventHandler AllRichFriendsFetched;

        //public delegate void MyAssetsFetchedEventHandler(Collection<MyAssetInfo> myassets);
        //public event MyAssetsFetchedEventHandler MyAssetsFetched;

        public GameRich()
        {
            this._allRichFriendsList = new Collection <FriendInfo>();
            this._myAssetsList       = new Collection <MyAssetInfo>();
            this._assetsMarketList   = new Collection <AssetInfo>();
            this._assetsList         = new Collection <AssetInfo>();
            this._canbuyasset        = true;
            this._cantransaction     = true;
            this._transactedasset    = false;
            this._isfirsttimebuy     = true;
            this._myFortuneRank      = FortuneRank.Worker;
        }
Ejemplo n.º 3
0
        private void GetMyFuntuneRank(string content, bool printMessage)
        {
            try
            {
                //<div class="l120_s" title=""><img src="http://pic.kaixin001.com/logo/58/82/120_2588258_1.jpg" /></div>
                //<a href="/home/?uid=2588258" class="sl noline f14"><b>庄荣-johnny</b></a><br>千万富翁

                //<div class="mt20"><img src="http://img.kaixin001.com.cn/i3/dh/icon_16.gif" align="absmiddle" /><b class="f12 c3">在打拼的好友</b></div>

                string strRank  = "";
                string rankinfo = JsonHelper.GetMid(content, "<div class=\"l120_s\" title=\"\">", "<div class=\"mt20\">");
                if (rankinfo.IndexOf("百万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Millionaire;
                    strRank        = "百万富翁";
                }
                else if (rankinfo.IndexOf("千万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Multimillionaire;
                    strRank        = "千万富翁";
                }
                else if (rankinfo.IndexOf("亿万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Billionaire;
                    strRank        = "亿万富翁";
                }
                else if (rankinfo.IndexOf("超级富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.SuperBillionaire;
                    strRank        = "超级富翁";
                }
                else
                {
                    _myFortuneRank = FortuneRank.Worker;
                    strRank        = "打工者";
                }

                if (printMessage)
                {
                    SetMessageLn(string.Format("我的财富等级:{0}", strRank));
                }
            }
            catch (Exception ex)
            {
                SetMessageLn("读取我的财富等级失败!");
                LogHelper.Write("GameRich.GetMyFuntuneRank", content, ex, LogSeverity.Error);
            }
        }
Ejemplo n.º 4
0
        private void GetMyFuntuneRank(string content, bool printMessage)
        {
            try
            {
                //<div class="l120_s" title=""><img src="http://pic.kaixin001.com/logo/58/82/120_2588258_1.jpg" /></div>
                //<a href="/home/?uid=2588258" class="sl noline f14"><b>庄荣-johnny</b></a><br>千万富翁

                //<div class="mt20"><img src="http://img.kaixin001.com.cn/i3/dh/icon_16.gif" align="absmiddle" /><b class="f12 c3">在打拼的好友</b></div>

                string strRank = "";
                string rankinfo = JsonHelper.GetMid(content, "<div class=\"l120_s\" title=\"\">", "<div class=\"mt20\">");
                if (rankinfo.IndexOf("百万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Millionaire;
                    strRank = "百万富翁";
                }
                else if (rankinfo.IndexOf("千万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Multimillionaire;
                    strRank = "千万富翁";
                }
                else if (rankinfo.IndexOf("亿万富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.Billionaire;
                    strRank = "亿万富翁";
                }
                else if (rankinfo.IndexOf("超级富翁") > -1)
                {
                    _myFortuneRank = FortuneRank.SuperBillionaire;
                    strRank = "超级富翁";
                }
                else
                {
                    _myFortuneRank = FortuneRank.Worker;
                    strRank = "打工者";
                }

                if (printMessage)
                    SetMessageLn(string.Format("我的财富等级:{0}", strRank));
            }
            catch (Exception ex)
            {
                SetMessageLn("读取我的财富等级失败!");
                LogHelper.Write("GameRich.GetMyFuntuneRank", content, ex, LogSeverity.Error);
            }
        }