コード例 #1
0
ファイル: ShopService.cs プロジェクト: Banandana/LineSharp
 public ProductSimpleList recv_getActivePurchaseVersions()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getActivePurchaseVersions_result result = new getActivePurchaseVersions_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.e) {
     throw result.E;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getActivePurchaseVersions failed: unknown result");
 }
コード例 #2
0
ファイル: ShopService.cs プロジェクト: Banandana/LineSharp
 public void getActivePurchaseVersions_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getActivePurchaseVersions_args args = new getActivePurchaseVersions_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getActivePurchaseVersions_result result = new getActivePurchaseVersions_result();
   try {
     result.Success = iface_.getActivePurchaseVersions(args.Start, args.Size, args.Language, args.Country);
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("getActivePurchaseVersions", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }