Beispiel #1
0
 public override bool GetUrlElement()
 {
     byte[] data = (byte[])actionGetter.GetMessage();
     if (data.Length > 0)
     {
         requestPack = ProtoBufUtils.Deserialize<Request1010Pack>(data);
         return true;
     }
     return false;
 }
Beispiel #2
0
 protected override void SetUrlElement()
 {
     readAuthory();
     req = new Request1010Pack();
     req.the3rdUserID = 1;
     req.actionID = (int)Request1010Pack.EnumOptType.use_enterNum;
     req.num = 1;
     req.strThe3rdUserID = "";
     req.typeUser = "******";
     req.version = "1.09";
     if (isUseConfigData())
     {
         setConfigData(req);
     }
     byte[] data = ProtoBufUtils.Serialize(req);
     netWriter.SetBodyData(data);
 }