| 3073 | } |
| 3074 | |
| 3075 | void readBusinessUserInfo(ThriftBinaryBufferReader& r, BusinessUserInfo& s) { |
| 3076 | QString fname; |
| 3077 | ThriftFieldType::type fieldType; |
| 3078 | qint16 fieldId; |
| 3079 | r.readStructBegin(fname); |
| 3080 | while(true) { |
| 3081 | r.readFieldBegin(fname, fieldType, fieldId); |
| 3082 | if(fieldType == ThriftFieldType::T_STOP) break; |
| 3083 | if(fieldId == 1) { |
| 3084 | if(fieldType == ThriftFieldType::T_I32) { |
| 3085 | qint32 v; |
| 3086 | r.readI32(v); |
| 3087 | s.businessId = v; |
| 3088 | } else { |
| 3089 | r.skip(fieldType); |
| 3090 | } |
| 3091 | } else |
| 3092 | if(fieldId == 2) { |
| 3093 | if(fieldType == ThriftFieldType::T_STRING) { |
| 3094 | QString v; |
| 3095 | r.readString(v); |
| 3096 | s.businessName = v; |
| 3097 | } else { |
| 3098 | r.skip(fieldType); |
| 3099 | } |
| 3100 | } else |
| 3101 | if(fieldId == 3) { |
| 3102 | if(fieldType == ThriftFieldType::T_I32) { |
| 3103 | BusinessUserRole::type v; |
| 3104 | readEnumBusinessUserRole(r, v); |
| 3105 | s.role = v; |
| 3106 | } else { |
| 3107 | r.skip(fieldType); |
| 3108 | } |
| 3109 | } else |
| 3110 | if(fieldId == 4) { |
| 3111 | if(fieldType == ThriftFieldType::T_STRING) { |
| 3112 | QString v; |
| 3113 | r.readString(v); |
| 3114 | s.email = v; |
| 3115 | } else { |
| 3116 | r.skip(fieldType); |
| 3117 | } |
| 3118 | } else |
| 3119 | { |
| 3120 | r.skip(fieldType); |
| 3121 | } |
| 3122 | r.readFieldEnd(); |
| 3123 | } |
| 3124 | r.readStructEnd(); |
| 3125 | } |
| 3126 | |
| 3127 | void writePremiumInfo(ThriftBinaryBufferWriter& w, const PremiumInfo& s) { |
| 3128 | w.writeStructBegin("PremiumInfo"); |
no test coverage detected