示例#1
0
 public void authenticateLongSession_Process(int seqid, TProtocol iprot, TProtocol oprot)
 {
   authenticateLongSession_args args = new authenticateLongSession_args();
   args.Read(iprot);
   iprot.ReadMessageEnd();
   authenticateLongSession_result result = new authenticateLongSession_result();
   try {
     result.Success = iface_.authenticateLongSession(args.Username, args.Password, args.ConsumerKey, args.ConsumerSecret, args.DeviceIdentifier, args.DeviceDescription);
   } catch (Evernote.EDAM.Error.EDAMUserException userException) {
     result.UserException = userException;
   } catch (Evernote.EDAM.Error.EDAMSystemException systemException) {
     result.SystemException = systemException;
   }
   oprot.WriteMessageBegin(new TMessage("authenticateLongSession", TMessageType.Reply, seqid)); 
   result.Write(oprot);
   oprot.WriteMessageEnd();
   oprot.Transport.Flush();
 }
示例#2
0
 public void send_authenticateLongSession(string username, string password, string consumerKey, string consumerSecret, string deviceIdentifier, string deviceDescription)
 #endif
 {
   oprot_.WriteMessageBegin(new TMessage("authenticateLongSession", TMessageType.Call, seqid_));
   authenticateLongSession_args args = new authenticateLongSession_args();
   args.Username = username;
   args.Password = password;
   args.ConsumerKey = consumerKey;
   args.ConsumerSecret = consumerSecret;
   args.DeviceIdentifier = deviceIdentifier;
   args.DeviceDescription = deviceDescription;
   args.Write(oprot_);
   oprot_.WriteMessageEnd();
   #if SILVERLIGHT || NETFX_CORE
   return oprot_.Transport.BeginFlush(callback, state);
   #else
   oprot_.Transport.Flush();
   #endif
 }