Esempio n. 1
0
 public void updateNotificationTokenWithBytes_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   updateNotificationTokenWithBytes_args args = new updateNotificationTokenWithBytes_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   updateNotificationTokenWithBytes_result result = new updateNotificationTokenWithBytes_result();
   try {
     iface_.updateNotificationTokenWithBytes(args.Type, args.Token);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("updateNotificationTokenWithBytes", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Esempio n. 2
0
 public void send_updateNotificationTokenWithBytes(NotificationType type, byte[] token)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("updateNotificationTokenWithBytes", TMessageType.Call, seqid_));
   updateNotificationTokenWithBytes_args args = new updateNotificationTokenWithBytes_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
 }