Example #1
0
 /// <summary>
 /// 获取请求数据
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public T GetReqData <T>() where T : class
 {
     try
     {
         ReqParameter <string> req = this.Bind <ReqParameter <string> >();
         return(req.data.ToObject <T>());
     }
     catch (Exception)
     {
         throw;
     }
 }
Example #2
0
 /// <summary>
 /// 获取请求数据
 /// </summary>
 /// <returns></returns>
 public string GetReqData()
 {
     try
     {
         ReqParameter <string> req = this.Bind <ReqParameter <string> >();
         return(req.data);
     }
     catch (Exception)
     {
         throw;
     }
 }