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 send_updateNotificationToken(NotificationType type, string token)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateNotificationToken", TMessageType.Call, seqid_));
   updateNotificationToken_args args = new updateNotificationToken_args();
   args.Type = type;
   args.Token = token;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }