Пример #1
0
 public void listTags_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   listTags_args args = new listTags_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   listTags_result result = new listTags_result();
   try {
     result.Success = iface_.listTags(args.AuthenticationToken);
   } catch (Evernote.EDAM.Error.EDAMUserException userException) {
     result.UserException = userException;
   } catch (Evernote.EDAM.Error.EDAMSystemException systemException) {
     result.SystemException = systemException;
   }
   oprot.WriteMessageBegin(new TMessage("listTags", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
Пример #2
0
 public List<Evernote.EDAM.Type.Tag> recv_listTags()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   listTags_result result = new listTags_result();
   result.Read(iprot_);
   iprot_.ReadMessageEnd();
   if (result.__isset.success) {
     return result.Success;
   }
   if (result.__isset.userException) {
     throw result.UserException;
   }
   if (result.__isset.systemException) {
     throw result.SystemException;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "listTags failed: unknown result");
 }