public void getResource_Process(int seqid, TProtocol iprot, TProtocol oprot) { getResource_args args = new getResource_args(); args.Read(iprot); iprot.ReadMessageEnd(); getResource_result result = new getResource_result(); try { result.Success = iface_.getResource(args.AuthenticationToken, args.Guid, args.WithData, args.WithRecognition, args.WithAttributes, args.WithAlternateData); } catch (Evernote.EDAM.Error.EDAMUserException userException) { result.UserException = userException; } catch (Evernote.EDAM.Error.EDAMSystemException systemException) { result.SystemException = systemException; } catch (Evernote.EDAM.Error.EDAMNotFoundException notFoundException) { result.NotFoundException = notFoundException; } oprot.WriteMessageBegin(new TMessage("getResource", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }