public void untagAll_Process(int seqid, TProtocol iprot, TProtocol oprot) { untagAll_args args = new untagAll_args(); args.Read(iprot); iprot.ReadMessageEnd(); untagAll_result result = new untagAll_result(); try { iface_.untagAll(args.AuthenticationToken, args.Guid); } 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("untagAll", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public void recv_untagAll() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } untagAll_result result = new untagAll_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.userException) { throw result.UserException; } if (result.__isset.systemException) { throw result.SystemException; } if (result.__isset.notFoundException) { throw result.NotFoundException; } return; }