コード例 #1
0
 public void getNote_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getNote_args args = new getNote_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getNote_result result = new getNote_result();
   try {
     result.Success = iface_.getNote(args.AuthenticationToken, args.Guid, args.WithContent, args.WithResourcesData, args.WithResourcesRecognition, args.WithResourcesAlternateData);
   } 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("getNote", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
コード例 #2
0
ファイル: NoteStore.cs プロジェクト: trayburn/EverGTD
 public void send_getNote(string authenticationToken, string guid, bool withContent)
 {
     oprot_.WriteMessageBegin(new TMessage("getNote", TMessageType.Call, seqid_));
     getNote_args args = new getNote_args();
     args.AuthenticationToken = authenticationToken;
     args.Guid = guid;
     args.WithContent = withContent;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }
コード例 #3
0
 public void send_getNote(string authenticationToken, string guid, bool withContent, bool withResourcesData, bool withResourcesRecognition, bool withResourcesAlternateData)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getNote", TMessageType.Call, seqid_));
   getNote_args args = new getNote_args();
   args.AuthenticationToken = authenticationToken;
   args.Guid = guid;
   args.WithContent = withContent;
   args.WithResourcesData = withResourcesData;
   args.WithResourcesRecognition = withResourcesRecognition;
   args.WithResourcesAlternateData = withResourcesAlternateData;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
コード例 #4
0
 public void send_getNote(string authenticationToken, string guid, bool withContent, bool withResourcesData, bool withResourcesRecognition, bool withResourcesAlternateData)
 {
   oprot_.WriteMessageBegin(new TMessage("getNote", TMessageType.Call, seqid_));
   getNote_args args = new getNote_args();
   args.AuthenticationToken = authenticationToken;
   args.Guid = guid;
   args.WithContent = withContent;
   args.WithResourcesData = withResourcesData;
   args.WithResourcesRecognition = withResourcesRecognition;
   args.WithResourcesAlternateData = withResourcesAlternateData;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   oprot_.Transport.Flush();
 }