Example #1
0
        public static RequestData Attack(string args)
        {
            if (OpponateId == -1)
            {
                return(null);//validation check
            }
            Dictionary <string, string> post = new Dictionary <string, string>()
            {
                { "id", OpponateId.ToString() },
                { "lvl", OpponatesLevel.ToString() },
                { "rank", OpponatesRank.ToString() },
                { "ac", OpponatesAvalibleCredits.ToString() },
                { "asp", OpponatesAvalibleSpairParts.ToString() }
            };

            return(new RequestData("", post));
        }
Example #2
0
        public static RequestData AResult(string args)
        {
            if (OpponateId == -1)
            {
                return(null); //validation check
            }
            Dictionary <string, string> post = new Dictionary <string, string>()
            {
                { "id", OpponateId.ToString() },
                { "r", args },
                { "lvl", OpponatesLevel.ToString() },
                { "rank", OpponatesRank.ToString() },
                { "ac", OpponatesAvalibleCredits.ToString() },
                { "asp", OpponatesAvalibleSpairParts.ToString() },
                { "aid", AttackingId.ToString() }
            };

            OpponateId = -1; //reset id so we cant resue command
            return(new RequestData("", post));
        }