Ejemplo n.º 1
0
 public void setBuddyLocation_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   setBuddyLocation_args args = new setBuddyLocation_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   setBuddyLocation_result result = new setBuddyLocation_result();
   try {
     iface_.setBuddyLocation(args.Mid, args.Index, args.Location);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("setBuddyLocation", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Ejemplo n.º 2
0
 public void recv_setBuddyLocation()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   setBuddyLocation_result result = new setBuddyLocation_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.e) {
     throw result.E;
   }
   return;
 }