public SyncChunk recv_getFilteredSyncChunk() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getFilteredSyncChunk_result result = new getFilteredSyncChunk_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.userException) { throw result.UserException; } if (result.__isset.systemException) { throw result.SystemException; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getFilteredSyncChunk failed: unknown result"); }
public void getFilteredSyncChunk_Process(int seqid, TProtocol iprot, TProtocol oprot) { getFilteredSyncChunk_args args = new getFilteredSyncChunk_args(); args.Read(iprot); iprot.ReadMessageEnd(); getFilteredSyncChunk_result result = new getFilteredSyncChunk_result(); try { result.Success = iface_.getFilteredSyncChunk(args.AuthenticationToken, args.AfterUSN, args.MaxEntries, args.Filter); } catch (Evernote.EDAM.Error.EDAMUserException userException) { result.UserException = userException; } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } oprot.WriteMessageBegin(new TMessage("getFilteredSyncChunk", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }