public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { Result = new List <Zbor>(); TList _list8 = iprot.ReadListBegin(); for (int _i9 = 0; _i9 < _list8.Count; ++_i9) { Zbor _elem10; _elem10 = new Zbor(); _elem10.Read(iprot); Result.Add(_elem10); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }
public model.Zbor FindZbor(string destinatie, string data, string ora) { CSharp.Zbor zbor = server.findZbor(destinatie, data, ora); return(new model.Zbor(zbor.ID, zbor.Destinatie, Convert.ToDateTime(zbor.Plecare), zbor.Aeroport, zbor.Locuri)); }