コード例 #1
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public int recv_getLastAnnouncementIndex()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getLastAnnouncementIndex_result result = new getLastAnnouncementIndex_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, "getLastAnnouncementIndex failed: unknown result");
 }
コード例 #2
0
ファイル: TalkService.cs プロジェクト: Banandana/LineSharp
 public void getLastAnnouncementIndex_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getLastAnnouncementIndex_args args = new getLastAnnouncementIndex_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getLastAnnouncementIndex_result result = new getLastAnnouncementIndex_result();
   try {
     result.Success = iface_.getLastAnnouncementIndex();
   } catch (TalkException e) {
     result.E = e;
   }
   oprot.WriteMessageBegin(new TMessage("getLastAnnouncementIndex", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }