| 6150 | } |
| 6151 | |
| 6152 | void writeAuthenticationResult(ThriftBinaryBufferWriter& w, const AuthenticationResult& s) { |
| 6153 | w.writeStructBegin("AuthenticationResult"); |
| 6154 | w.writeFieldBegin("currentTime", ThriftFieldType::T_I64, 1); |
| 6155 | w.writeI64(s.currentTime); |
| 6156 | w.writeFieldEnd(); |
| 6157 | w.writeFieldBegin("authenticationToken", ThriftFieldType::T_STRING, 2); |
| 6158 | w.writeString(s.authenticationToken); |
| 6159 | w.writeFieldEnd(); |
| 6160 | w.writeFieldBegin("expiration", ThriftFieldType::T_I64, 3); |
| 6161 | w.writeI64(s.expiration); |
| 6162 | w.writeFieldEnd(); |
| 6163 | if(s.user.isSet()) { |
| 6164 | w.writeFieldBegin("user", ThriftFieldType::T_STRUCT, 4); |
| 6165 | writeUser(w, s.user.ref()); |
| 6166 | w.writeFieldEnd(); |
| 6167 | } |
| 6168 | if(s.publicUserInfo.isSet()) { |
| 6169 | w.writeFieldBegin("publicUserInfo", ThriftFieldType::T_STRUCT, 5); |
| 6170 | writePublicUserInfo(w, s.publicUserInfo.ref()); |
| 6171 | w.writeFieldEnd(); |
| 6172 | } |
| 6173 | if(s.noteStoreUrl.isSet()) { |
| 6174 | w.writeFieldBegin("noteStoreUrl", ThriftFieldType::T_STRING, 6); |
| 6175 | w.writeString(s.noteStoreUrl.ref()); |
| 6176 | w.writeFieldEnd(); |
| 6177 | } |
| 6178 | if(s.webApiUrlPrefix.isSet()) { |
| 6179 | w.writeFieldBegin("webApiUrlPrefix", ThriftFieldType::T_STRING, 7); |
| 6180 | w.writeString(s.webApiUrlPrefix.ref()); |
| 6181 | w.writeFieldEnd(); |
| 6182 | } |
| 6183 | if(s.secondFactorRequired.isSet()) { |
| 6184 | w.writeFieldBegin("secondFactorRequired", ThriftFieldType::T_BOOL, 8); |
| 6185 | w.writeBool(s.secondFactorRequired.ref()); |
| 6186 | w.writeFieldEnd(); |
| 6187 | } |
| 6188 | if(s.secondFactorDeliveryHint.isSet()) { |
| 6189 | w.writeFieldBegin("secondFactorDeliveryHint", ThriftFieldType::T_STRING, 9); |
| 6190 | w.writeString(s.secondFactorDeliveryHint.ref()); |
| 6191 | w.writeFieldEnd(); |
| 6192 | } |
| 6193 | w.writeFieldStop(); |
| 6194 | w.writeStructEnd(); |
| 6195 | } |
| 6196 | |
| 6197 | void readAuthenticationResult(ThriftBinaryBufferReader& r, AuthenticationResult& s) { |
| 6198 | QString fname; |
nothing calls this directly
no test coverage detected