public BatchSubmitResponse DeepCopy()
        {
            var tmp38 = new BatchSubmitResponse();

            tmp38.Ok = this.Ok;
            return(tmp38);
        }
Пример #2
0
            public async Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken)
            {
                iprot.IncrementRecursionDepth();
                try
                {
                    TField field;
                    await iprot.ReadStructBeginAsync(cancellationToken);

                    while (true)
                    {
                        field = await iprot.ReadFieldBeginAsync(cancellationToken);

                        if (field.Type == TType.Stop)
                        {
                            break;
                        }

                        switch (field.ID)
                        {
                        case 0:
                            if (field.Type == TType.List)
                            {
                                {
                                    TList _list28 = await iprot.ReadListBeginAsync(cancellationToken);

                                    Success = new List <BatchSubmitResponse>(_list28.Count);
                                    for (int _i29 = 0; _i29 < _list28.Count; ++_i29)
                                    {
                                        BatchSubmitResponse _elem30;
                                        _elem30 = new BatchSubmitResponse();
                                        await _elem30.ReadAsync(iprot, cancellationToken);

                                        Success.Add(_elem30);
                                    }
                                    await iprot.ReadListEndAsync(cancellationToken);
                                }
                            }
                            else
                            {
                                await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);
                            }
                            break;

                        default:
                            await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken);

                            break;
                        }

                        await iprot.ReadFieldEndAsync(cancellationToken);
                    }

                    await iprot.ReadStructEndAsync(cancellationToken);
                }
                finally
                {
                    iprot.DecrementRecursionDepth();
                }
            }