Example #1
0
 protected override void SetUrlElement()
 {
     req = new Request1000Pack();
       req.UserName = "Computer_" + indentify;
       req.Score = RandomUtils.GetRandom(1, 1000);
       req.UserID = -10;// RandomUtils.GetRandom(1, 1000);
       req.version = "1.08";
       //System.Console.WriteLine(" setp urlelement 1000 ");
       req.Identify = req.UserName;
       if(isUseConfigData())
       {
       setConfigData(req);
       }
       byte[] data = ProtoBufUtils.Serialize(req);
       netWriter.SetBodyData(data);
 }
Example #2
0
 public override bool GetUrlElement()
 {
     byte[] data = (byte[])actionGetter.GetMessage();
     if (data.Length > 0)
     {
         requestPack = ProtoBufUtils.Deserialize<Request1000Pack>(data);
         return true;
     }
     return false;
 }