예제 #1
0
 public void setThundering_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   setThundering_args args = new setThundering_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   setThundering_result result = new setThundering_result();
   try {
     result.Success = iface_.setThundering(args.AuthString, args.WorldName, args.IsThundering);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("setThundering", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public bool recv_setThundering()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   setThundering_result result = new setThundering_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.aex) {
     throw result.Aex;
   }
   if (result.__isset.dex) {
     throw result.Dex;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "setThundering failed: unknown result");
 }