示例#1
0
 public void listSharedNotebooks_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   listSharedNotebooks_args args = new listSharedNotebooks_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   listSharedNotebooks_result result = new listSharedNotebooks_result();
   try {
     result.Success = iface_.listSharedNotebooks(args.AuthenticationToken);
   } 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("listSharedNotebooks", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
示例#2
0
 public List<Evernote.EDAM.Type.SharedNotebook> recv_listSharedNotebooks()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   listSharedNotebooks_result result = new listSharedNotebooks_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, "listSharedNotebooks failed: unknown result");
 }