Пример #1
0
 public SyncState recv_getLinkedNotebookSyncState()
 {
   TMessage msg = iprot_.ReadMessageBegin();
   if (msg.Type == TMessageType.Exception) {
     TApplicationException x = TApplicationException.Read(iprot_);
     iprot_.ReadMessageEnd();
     throw x;
   }
   getLinkedNotebookSyncState_result result = new getLinkedNotebookSyncState_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;
   }
   if (result.__isset.notFoundException) {
     throw result.NotFoundException;
   }
   throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getLinkedNotebookSyncState failed: unknown result");
 }
Пример #2
0
 public void getLinkedNotebookSyncState_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getLinkedNotebookSyncState_args args = new getLinkedNotebookSyncState_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getLinkedNotebookSyncState_result result = new getLinkedNotebookSyncState_result();
   try {
     result.Success = iface_.getLinkedNotebookSyncState(args.AuthenticationToken, args.LinkedNotebook);
   } 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("getLinkedNotebookSyncState", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }