Esempio n. 1
0
 public void updateNotificationToken_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   updateNotificationToken_args args = new updateNotificationToken_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   updateNotificationToken_result result = new updateNotificationToken_result();
   try {
     iface_.updateNotificationToken(args.Type, args.Token);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("updateNotificationToken", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Esempio n. 2
0
 public void recv_updateNotificationToken()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   updateNotificationToken_result result = new updateNotificationToken_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.e) {
     throw result.E;
   }
   return;
 }