public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { DisplayOrderId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { AcademicInstituteId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { AcademicInstituteName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Struct) { City = new City(); City.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.Struct) { Country = new Country(); Country.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.String) { JoinedYear = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Bool) { HasGraduated = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { GraduatedYear = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.Struct) { Degree = new Degree(); Degree.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.Struct) { Concentration = new Concentration(); Concentration.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.I32) { AcademicId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { AcademicInstitute = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.I32) { UserId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.I32) { Mode = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.String) { UserIdOrName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { UserId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I16) { Mode = iprot.ReadI16(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { EmployeeInfo = new CompanyEmployeeInfo(); EmployeeInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.I64) { PersonEmploymentId = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I64) { RequestId = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.Struct) { City = new City(); City.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.Struct) { DbStatus = new DbStatus(); DbStatus.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { EmployeeIds = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.I32) { Rating = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { CompanyId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { EmployeeId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.String) { Username = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.String) { StartDate = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I32) { PositionId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.I32) { Rating = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I32) { CompanyUserId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.String) { Name = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.String) { Picture = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.String) { Position = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.String) { CompanyName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.I32) { EmployeeTypeId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 13: if (field.Type == TType.Bool) { IsExecutiveBody = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 14: if (field.Type == TType.String) { EndDate = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 15: if (field.Type == TType.I32) { UserId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 16: if (field.Type == TType.String) { CompanyUsername = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 17: if (field.Type == TType.String) { CompanyPicture = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 18: if (field.Type == TType.Struct) { City = new City(); City.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 19: if (field.Type == TType.Struct) { Country = new Country(); Country.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Bool) { ApprovedStatus = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 21: if (field.Type == TType.String) { EmployeeTypeName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 22: if (field.Type == TType.Bool) { ScheduleType = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 23: if (field.Type == TType.String) { Firstname = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 24: if (field.Type == TType.String) { Lastname = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 25: if (field.Type == TType.String) { Added = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 26: if (field.Type == TType.I32) { Mode = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 27: if (field.Type == TType.Bool) { IsPromoted = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 28: if (field.Type == TType.I64) { RequestId = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 29: if (field.Type == TType.String) { PositionName = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.I64) { EmploymentId = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.List) { { Success = new List<City>(); TList _list240 = iprot.ReadListBegin(); for( int _i241 = 0; _i241 < _list240.Count; ++_i241) { City _elem242; _elem242 = new City(); _elem242.Read(iprot); Success.Add(_elem242); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { Ex = new UserException(); Ex.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Se = new SessionException(); Se.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }