listParts method
Implementation
Future<ListPartsResp> listParts(ListPartsReq? req) async {
oprot.writeMessageBegin(
new TMessage("listParts", TMessageType.CALL, nextSeqid()));
listParts_args args = new listParts_args();
args.req = req;
args.write(oprot);
oprot.writeMessageEnd();
await oprot.trans_.flush();
TMessage msg = iprot.readMessageBegin();
if (msg.type == TMessageType.EXCEPTION) {
TApplicationError error = TApplicationError.read(iprot);
iprot.readMessageEnd();
throw error;
}
listParts_result result = new listParts_result();
result.read(iprot);
iprot.readMessageEnd();
if (result.isSetSuccess()) {
return result.success!;
}
throw new TApplicationError(TApplicationErrorType.MISSING_RESULT,
"listParts failed: unknown result");
}