public Railcard(string line) { RailcardCode = RJISParseUtils.GetRailcardCode(line, 0); (EndDate, StartDate, QuoteDate) = RJISParseUtils.GetEndStartQuoteDates(line, 3); HolderType = RJISParseUtils.GetAdultChild(line, 27); Description = line.Substring(28, 20); RestrictedByIssue = RJISParseUtils.GetYNAsBoolean(line, 48); RestrictedByArea = RJISParseUtils.GetYNAsBoolean(line, 49); RestrictedByTrain = RJISParseUtils.GetYNAsBoolean(line, 50); RestrictedByDate = RJISParseUtils.GetYNAsBoolean(line, 51); RailcardMasterCode = RJISParseUtils.GetRailcardCode(line, 52); MaxPassengers = RJISParseUtils.GetInt(line, 56, 3); MinPassengers = RJISParseUtils.GetInt(line, 59, 3); MaxHolders = RJISParseUtils.GetInt(line, 62, 3); MinHolders = RJISParseUtils.GetInt(line, 65, 3); MaxAccAdults = RJISParseUtils.GetInt(line, 68, 3); MinAccAdults = RJISParseUtils.GetInt(line, 71, 3); MaxAdults = RJISParseUtils.GetInt(line, 74, 3); MinAdults = RJISParseUtils.GetInt(line, 77, 3); MaxChildren = RJISParseUtils.GetInt(line, 80, 3); MinChildren = RJISParseUtils.GetInt(line, 83, 3); DiscountPrice = RJISParseUtils.GetInt(line, 94, 8); ValidMonths = RJISParseUtils.GetInt(line, 102, 2); ValidDays = RJISParseUtils.GetInt(line, 104, 2); LastValidDate = RJISParseUtils.GetDate(line, 106); CapriTicketCode = RJISParseUtils.GetThreeAlphaNumeric(line, 115); }
public Tt(string line) { Debug.Assert(line.Length == 13); Debug.Assert(line.Substring(1, 2) == "TT"); CfMarker = RJISParseUtils.GetCurrentFuture(line, 3); RestrictionCode = RJISParseUtils.GetRestrictionCode(line, 4); SeqNo = RJISParseUtils.GetInt(line, 6, 4); OutRet = RJISParseUtils.GetOutReturn(line, 10); TocCode = line.Substring(11, 2); }
public Sd(string line) { Debug.Assert(line.Length == 28); Debug.Assert(line.Substring(1, 2) == "SD"); CfMarker = RJISParseUtils.GetCurrentFuture(line, 3); RestrictionCode = RJISParseUtils.GetRestrictionCode(line, 4); TrainUID = line.Substring(6, 6); OutRet = RJISParseUtils.GetOutReturn(line, 12); DateFrom = RJISParseUtils.GetMMDD(line, 13); DateTo = RJISParseUtils.GetMMDD(line, 17); Days = RJISParseUtils.GetDays(line, 21); }
public Rh(string line) { Debug.Assert(line.Length == 139); Debug.Assert(line.Substring(1, 2) == "RH"); CfMarker = RJISParseUtils.GetCurrentFuture(line, 3); RestrictionCode = RJISParseUtils.GetRestrictionCode(line, 4); Description = line.Substring(6, 30); DescOut = line.Substring(36, 50); DescReturn = line.Substring(86, 50); TypeOut = RJISParseUtils.GetPositiveNegative(line, 136); TypeRtn = RJISParseUtils.GetPositiveNegative(line, 137); ChangeInd = RJISParseUtils.GetYNAsBoolean(line, 138); }
public Tr(string line) { Debug.Assert(line.Length == 26); Debug.Assert(line.Substring(1, 2) == "TR"); CfMarker = RJISParseUtils.GetCurrentFuture(line, 3); RestrictionCode = RJISParseUtils.GetRestrictionCode(line, 4); SeqNo = RJISParseUtils.GetInt(line, 6, 4); OutRet = RJISParseUtils.GetOutReturn(line, 10); TimeFrom = RJISParseUtils.GetHHMM(line, 11); TimeTo = RJISParseUtils.GetHHMM(line, 15); ArriveDepart = RJISParseUtils.GetArriveDepartVia(line, 19); LocationCrs = RJISParseUtils.GetCrsCode(line, 20); RestrictionType = RJISParseUtils.GetActualOrRunningTime(line, 23); TrainType = line[24]; MinFareFlag = RJISParseUtils.GetYNAsBoolean(line, 25); Key = CfMarker + RestrictionCode + SeqNo + OutRet; }