public void send_completeTwoFactorAuthentication(string authenticationToken, string oneTimeCode, string deviceIdentifier, string deviceDescription) #endif { oprot_.WriteMessageBegin(new TMessage("completeTwoFactorAuthentication", TMessageType.Call, seqid_)); completeTwoFactorAuthentication_args args = new completeTwoFactorAuthentication_args(); args.AuthenticationToken = authenticationToken; args.OneTimeCode = oneTimeCode; 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 }
public void completeTwoFactorAuthentication_Process(int seqid, TProtocol iprot, TProtocol oprot) { completeTwoFactorAuthentication_args args = new completeTwoFactorAuthentication_args(); args.Read(iprot); iprot.ReadMessageEnd(); completeTwoFactorAuthentication_result result = new completeTwoFactorAuthentication_result(); try { result.Success = iface_.completeTwoFactorAuthentication(args.AuthenticationToken, args.OneTimeCode, 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("completeTwoFactorAuthentication", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }