public void getPublicNotebook_Process(int seqid, TProtocol iprot, TProtocol oprot) { getPublicNotebook_args args = new getPublicNotebook_args(); args.Read(iprot); iprot.ReadMessageEnd(); getPublicNotebook_result result = new getPublicNotebook_result(); try { result.Success = iface_.getPublicNotebook(args.UserId, args.PublicUri); } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } catch (Evernote.EDAM.Error.EDAMNotFoundException notFoundException) { result.NotFoundException = notFoundException; } oprot.WriteMessageBegin(new TMessage("getPublicNotebook", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public Evernote.EDAM.Type.Notebook recv_getPublicNotebook() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getPublicNotebook_result result = new getPublicNotebook_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.systemException) { throw result.SystemException; } if (result.__isset.notFoundException) { throw result.NotFoundException; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getPublicNotebook failed: unknown result"); }