Beispiel #1
0
 public void send_checkCanReceivePresent(string recipientMid, long packageId, string language, string country)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("checkCanReceivePresent", TMessageType.Call, seqid_));
   checkCanReceivePresent_args args = new checkCanReceivePresent_args();
   args.RecipientMid = recipientMid;
   args.PackageId = packageId;
   args.Language = language;
   args.Country = country;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
Beispiel #2
0
 public void checkCanReceivePresent_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   checkCanReceivePresent_args args = new checkCanReceivePresent_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   checkCanReceivePresent_result result = new checkCanReceivePresent_result();
   try {
     iface_.checkCanReceivePresent(args.RecipientMid, args.PackageId, args.Language, args.Country);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("checkCanReceivePresent", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }