public void ValidateUser_Process(int seqid, TProtocol iprot, TProtocol oprot) { ValidateUser_args args = new ValidateUser_args(); args.Read(iprot); iprot.ReadMessageEnd(); ValidateUser_result result = new ValidateUser_result(); result.Success = iface_.ValidateUser(args.PhoneNumber, args.OneTimePassword, args.DeviceId, args.Random); oprot.WriteMessageBegin(new TMessage("ValidateUser", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }
public UserCookie recv_ValidateUser() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } ValidateUser_result result = new ValidateUser_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "ValidateUser failed: unknown result"); }