public void updateSharedNotebook_Process(int seqid, TProtocol iprot, TProtocol oprot) { updateSharedNotebook_args args = new updateSharedNotebook_args(); args.Read(iprot); iprot.ReadMessageEnd(); updateSharedNotebook_result result = new updateSharedNotebook_result(); try { result.Success = iface_.updateSharedNotebook(args.AuthenticationToken, args.SharedNotebook); } 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("updateSharedNotebook", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public int recv_updateSharedNotebook() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } updateSharedNotebook_result result = new updateSharedNotebook_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } if (result.__isset.userException) { throw result.UserException; } if (result.__isset.notFoundException) { throw result.NotFoundException; } if (result.__isset.systemException) { throw result.SystemException; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "updateSharedNotebook failed: unknown result"); }