| 8942 | } |
| 8943 | |
| 8944 | BootstrapInfo UserStore_getBootstrapInfo_readReply(QByteArray reply) |
| 8945 | { |
| 8946 | bool resultIsSet = false; |
| 8947 | BootstrapInfo result = BootstrapInfo(); |
| 8948 | ThriftBinaryBufferReader r(reply); |
| 8949 | qint32 rseqid = 0; |
| 8950 | QString fname; |
| 8951 | ThriftMessageType::type mtype; |
| 8952 | r.readMessageBegin(fname, mtype, rseqid); |
| 8953 | if (mtype == ThriftMessageType::T_EXCEPTION) { |
| 8954 | ThriftException e = readThriftException(r); |
| 8955 | r.readMessageEnd(); |
| 8956 | throw e; |
| 8957 | } |
| 8958 | if (mtype != ThriftMessageType::T_REPLY) { |
| 8959 | r.skip(ThriftFieldType::T_STRUCT); |
| 8960 | r.readMessageEnd(); |
| 8961 | throw ThriftException(ThriftException::Type::INVALID_MESSAGE_TYPE); |
| 8962 | } |
| 8963 | if (fname.compare("getBootstrapInfo") != 0) { |
| 8964 | r.skip(ThriftFieldType::T_STRUCT); |
| 8965 | r.readMessageEnd(); |
| 8966 | throw ThriftException(ThriftException::Type::WRONG_METHOD_NAME); |
| 8967 | } |
| 8968 | |
| 8969 | ThriftFieldType::type fieldType; |
| 8970 | qint16 fieldId; |
| 8971 | r.readStructBegin(fname); |
| 8972 | while(true) { |
| 8973 | r.readFieldBegin(fname, fieldType, fieldId); |
| 8974 | if(fieldType == ThriftFieldType::T_STOP) break; |
| 8975 | if(fieldId == 0) { |
| 8976 | if(fieldType == ThriftFieldType::T_STRUCT) { |
| 8977 | resultIsSet = true; |
| 8978 | BootstrapInfo v; |
| 8979 | readBootstrapInfo(r, v); |
| 8980 | result = v; |
| 8981 | } else { |
| 8982 | r.skip(fieldType); |
| 8983 | } |
| 8984 | } |
| 8985 | else { |
| 8986 | r.skip(fieldType); |
| 8987 | } |
| 8988 | r.readFieldEnd(); |
| 8989 | } |
| 8990 | r.readStructEnd(); |
| 8991 | r.readMessageEnd(); |
| 8992 | if(!resultIsSet) throw ThriftException(ThriftException::Type::MISSING_RESULT, QStringLiteral("getBootstrapInfo: missing result")); |
| 8993 | return result; |
| 8994 | } |
| 8995 | |
| 8996 | QVariant UserStore_getBootstrapInfo_readReplyAsync(QByteArray reply) |
| 8997 | { |
no test coverage detected