예제 #1
0
 public void send_getResource(string authenticationToken, string guid, bool withData, bool withRecognition, bool withAttributes, bool withAlternateData)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("getResource", TMessageType.Call, seqid_));
   getResource_args args = new getResource_args();
   args.AuthenticationToken = authenticationToken;
   args.Guid = guid;
   args.WithData = withData;
   args.WithRecognition = withRecognition;
   args.WithAttributes = withAttributes;
   args.WithAlternateData = withAlternateData;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }
예제 #2
0
 public void getResource_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   getResource_args args = new getResource_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   getResource_result result = new getResource_result();
   try {
     result.Success = iface_.getResource(args.AuthenticationToken, args.Guid, args.WithData, args.WithRecognition, args.WithAttributes, args.WithAlternateData);
   } 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("getResource", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
예제 #3
0
 public void send_getResource(string authenticationToken, string guid, bool withData, bool withRecognition, bool withAttributes)
 {
     oprot_.WriteMessageBegin(new TMessage("getResource", TMessageType.Call, seqid_));
     getResource_args args = new getResource_args();
     args.AuthenticationToken = authenticationToken;
     args.Guid = guid;
     args.WithData = withData;
     args.WithRecognition = withRecognition;
     args.WithAttributes = withAttributes;
     args.Write(oprot_);
     oprot_.WriteMessageEnd();
     oprot_.Transport.Flush();
 }