Exemple #1
0
 public void updateBuddySetting_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   updateBuddySetting_args args = new updateBuddySetting_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   updateBuddySetting_result result = new updateBuddySetting_result();
   try {
     iface_.updateBuddySetting(args.Key, args.Value);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("updateBuddySetting", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Exemple #2
0
 public void recv_updateBuddySetting()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   updateBuddySetting_result result = new updateBuddySetting_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.e) {
     throw result.E;
   }
   return;
 }