예제 #1
0
 public void deOp_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   deOp_args args = new deOp_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   deOp_result result = new deOp_result();
   try {
     result.Success = iface_.deOp(args.AuthString, args.Name, args.NotifyPlayer);
   } catch (org.phybros.thrift.EAuthException aex) {
     result.Aex = aex;
   } catch (org.phybros.thrift.EDataException dex) {
     result.Dex = dex;
   }
   oprot.WriteMessageBegin(new TMessage("deOp", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #2
0
 public void send_deOp(string authString, string name, bool notifyPlayer)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("deOp", TMessageType.Call, seqid_));
   deOp_args args = new deOp_args();
   args.AuthString = authString;
   args.Name = name;
   args.NotifyPlayer = notifyPlayer;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }