public void emailNote_Process(int seqid, TProtocol iprot, TProtocol oprot) { emailNote_args args = new emailNote_args(); args.Read(iprot); iprot.ReadMessageEnd(); emailNote_result result = new emailNote_result(); try { iface_.emailNote(args.AuthenticationToken, args.Parameters); } catch (Evernote.EDAM.Error.EDAMUserException userException) { result.UserException = userException; } catch (Evernote.EDAM.Error.EDAMNotFoundException notFoundException) { result.NotFoundException = notFoundException; } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } oprot.WriteMessageBegin(new TMessage("emailNote", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_emailNote() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } emailNote_result result = new emailNote_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.userException) { throw result.UserException; } if (result.__isset.notFoundException) { throw result.NotFoundException; } if (result.__isset.systemException) { throw result.SystemException; } return; }