Documentation ¶
Index ¶
- type Client
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams, opts ...ClientOption) (*THSRAPIAlertInfoOK, *THSRAPIAlertInfoStatus299, error)
- func (a *Client) THSRAPIAvailableSeatStatus(params *THSRAPIAvailableSeatStatusParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOK, *THSRAPIAvailableSeatStatusStatus299, error)
- func (a *Client) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatus1OK, *THSRAPIAvailableSeatStatus1Status299, error)
- func (a *Client) THSRAPIAvailableSeatStatusListStation(params *THSRAPIAvailableSeatStatusListStationParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStationOK, ...)
- func (a *Client) THSRAPIAvailableSeatStatusListStation1(params *THSRAPIAvailableSeatStatusListStation1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStation1OK, ...)
- func (a *Client) THSRAPIAvailableSeatStatusOD(params *THSRAPIAvailableSeatStatusODParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusODOK, *THSRAPIAvailableSeatStatusODStatus299, error)
- func (a *Client) THSRAPIAvailableSeatStatusOD1(params *THSRAPIAvailableSeatStatusOD1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD1OK, *THSRAPIAvailableSeatStatusOD1Status299, ...)
- func (a *Client) THSRAPIAvailableSeatStatusOD2(params *THSRAPIAvailableSeatStatusOD2Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD2OK, *THSRAPIAvailableSeatStatusOD2Status299, ...)
- func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams, opts ...ClientOption) (*THSRAPIDailyTimetableOK, *THSRAPIDailyTimetableStatus299, error)
- func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params, opts ...ClientOption) (*THSRAPIDailyTimetable1OK, *THSRAPIDailyTimetable1Status299, error)
- func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params, opts ...ClientOption) (*THSRAPIDailyTimetable2OK, *THSRAPIDailyTimetable2Status299, error)
- func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params, opts ...ClientOption) (*THSRAPIDailyTimetable3OK, *THSRAPIDailyTimetable3Status299, error)
- func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams, opts ...ClientOption) (*THSRAPIDailyTrainInfoOK, *THSRAPIDailyTrainInfoStatus299, error)
- func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo1OK, *THSRAPIDailyTrainInfo1Status299, error)
- func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo2OK, *THSRAPIDailyTrainInfo2Status299, error)
- func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo3OK, *THSRAPIDailyTrainInfo3Status299, error)
- func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams, opts ...ClientOption) (*THSRAPIGeneralTimetableOK, *THSRAPIGeneralTimetableStatus299, error)
- func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params, opts ...ClientOption) (*THSRAPIGeneralTimetable1OK, *THSRAPIGeneralTimetable1Status299, error)
- func (a *Client) THSRAPINews(params *THSRAPINewsParams, opts ...ClientOption) (*THSRAPINewsOK, *THSRAPINewsStatus299, error)
- func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams, opts ...ClientOption) (*THSRAPIODDailyTimetableOK, *THSRAPIODDailyTimetableStatus299, error)
- func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams, opts ...ClientOption) (*THSRAPIODFareOK, *THSRAPIODFareStatus299, error)
- func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params, opts ...ClientOption) (*THSRAPIODFare1OK, *THSRAPIODFare1Status299, error)
- func (a *Client) THSRAPIShape(params *THSRAPIShapeParams, opts ...ClientOption) (*THSRAPIShapeOK, *THSRAPIShapeStatus299, error)
- func (a *Client) THSRAPIStation(params *THSRAPIStationParams, opts ...ClientOption) (*THSRAPIStationOK, *THSRAPIStationStatus299, error)
- func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams, opts ...ClientOption) (*THSRAPIStationExitOK, *THSRAPIStationExitStatus299, error)
- func (a *Client) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams, opts ...ClientOption) (*THSRAPIStationTimetableOK, *THSRAPIStationTimetableStatus299, error)
- type ClientOption
- type ClientService
- type THSRAPIAlertInfoNotModified
- type THSRAPIAlertInfoOK
- type THSRAPIAlertInfoParams
- func NewTHSRAPIAlertInfoParams() *THSRAPIAlertInfoParams
- func NewTHSRAPIAlertInfoParamsWithContext(ctx context.Context) *THSRAPIAlertInfoParams
- func NewTHSRAPIAlertInfoParamsWithHTTPClient(client *http.Client) *THSRAPIAlertInfoParams
- func NewTHSRAPIAlertInfoParamsWithTimeout(timeout time.Duration) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) SetContext(ctx context.Context)
- func (o *THSRAPIAlertInfoParams) SetDefaults()
- func (o *THSRAPIAlertInfoParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAlertInfoParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAlertInfoParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAlertInfoParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAlertInfoParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAlertInfoParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAlertInfoParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAlertInfoParams) SetHealth(health *string)
- func (o *THSRAPIAlertInfoParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAlertInfoParams) WithContext(ctx context.Context) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDefaults() *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarFilter(dollarFilter *string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarFormat(dollarFormat string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarSelect(dollarSelect *string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarSkip(dollarSkip *string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithDollarTop(dollarTop *int64) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithHTTPClient(client *http.Client) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithHealth(health *string) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WithTimeout(timeout time.Duration) *THSRAPIAlertInfoParams
- func (o *THSRAPIAlertInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAlertInfoReader
- type THSRAPIAlertInfoStatus299
- type THSRAPIAvailableSeatStatus1NotModified
- type THSRAPIAvailableSeatStatus1OK
- type THSRAPIAvailableSeatStatus1Params
- func NewTHSRAPIAvailableSeatStatus1Params() *THSRAPIAvailableSeatStatus1Params
- func NewTHSRAPIAvailableSeatStatus1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatus1Params
- func NewTHSRAPIAvailableSeatStatus1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus1Params
- func NewTHSRAPIAvailableSeatStatus1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDefaults()
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatus1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatus1Params) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatus1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatus1Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIAvailableSeatStatus1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDefaults() *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatus1Params
- func (o *THSRAPIAvailableSeatStatus1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatus1Reader
- type THSRAPIAvailableSeatStatus1Status299
- type THSRAPIAvailableSeatStatusListStation1NotModified
- type THSRAPIAvailableSeatStatusListStation1OK
- type THSRAPIAvailableSeatStatusListStation1Params
- func NewTHSRAPIAvailableSeatStatusListStation1Params() *THSRAPIAvailableSeatStatusListStation1Params
- func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStation1Params
- func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStation1Params
- func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetStationID(stationID string)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDefaults() *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithStationID(stationID string) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStation1Params
- func (o *THSRAPIAvailableSeatStatusListStation1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusListStation1Reader
- type THSRAPIAvailableSeatStatusListStation1Status299
- type THSRAPIAvailableSeatStatusListStationNotModified
- type THSRAPIAvailableSeatStatusListStationOK
- type THSRAPIAvailableSeatStatusListStationParams
- func NewTHSRAPIAvailableSeatStatusListStationParams() *THSRAPIAvailableSeatStatusListStationParams
- func NewTHSRAPIAvailableSeatStatusListStationParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStationParams
- func NewTHSRAPIAvailableSeatStatusListStationParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStationParams
- func NewTHSRAPIAvailableSeatStatusListStationParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusListStationParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDefaults() *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStationParams
- func (o *THSRAPIAvailableSeatStatusListStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusListStationReader
- type THSRAPIAvailableSeatStatusListStationStatus299
- type THSRAPIAvailableSeatStatusNotModified
- type THSRAPIAvailableSeatStatusOD1NotModified
- type THSRAPIAvailableSeatStatusOD1OK
- type THSRAPIAvailableSeatStatusOD1Params
- func NewTHSRAPIAvailableSeatStatusOD1Params() *THSRAPIAvailableSeatStatusOD1Params
- func NewTHSRAPIAvailableSeatStatusOD1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD1Params
- func NewTHSRAPIAvailableSeatStatusOD1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD1Params
- func NewTHSRAPIAvailableSeatStatusOD1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDestinationStationID(destinationStationID string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetOriginStationID(originStationID string)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusOD1Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDefaults() *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusOD1Params
- func (o *THSRAPIAvailableSeatStatusOD1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusOD1Reader
- type THSRAPIAvailableSeatStatusOD1Status299
- type THSRAPIAvailableSeatStatusOD2NotModified
- type THSRAPIAvailableSeatStatusOD2OK
- type THSRAPIAvailableSeatStatusOD2Params
- func NewTHSRAPIAvailableSeatStatusOD2Params() *THSRAPIAvailableSeatStatusOD2Params
- func NewTHSRAPIAvailableSeatStatusOD2ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD2Params
- func NewTHSRAPIAvailableSeatStatusOD2ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD2Params
- func NewTHSRAPIAvailableSeatStatusOD2ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDestinationStationID(destinationStationID string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetOriginStationID(originStationID string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIAvailableSeatStatusOD2Params) SetTrainNo(trainNo string)
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDefaults() *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WithTrainNo(trainNo string) *THSRAPIAvailableSeatStatusOD2Params
- func (o *THSRAPIAvailableSeatStatusOD2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusOD2Reader
- type THSRAPIAvailableSeatStatusOD2Status299
- type THSRAPIAvailableSeatStatusODNotModified
- type THSRAPIAvailableSeatStatusODOK
- type THSRAPIAvailableSeatStatusODParams
- func NewTHSRAPIAvailableSeatStatusODParams() *THSRAPIAvailableSeatStatusODParams
- func NewTHSRAPIAvailableSeatStatusODParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusODParams
- func NewTHSRAPIAvailableSeatStatusODParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusODParams
- func NewTHSRAPIAvailableSeatStatusODParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusODParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusODParams) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusODParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusODParams) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIAvailableSeatStatusODParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDefaults() *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusODParams
- func (o *THSRAPIAvailableSeatStatusODParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusODReader
- type THSRAPIAvailableSeatStatusODStatus299
- type THSRAPIAvailableSeatStatusOK
- type THSRAPIAvailableSeatStatusParams
- func NewTHSRAPIAvailableSeatStatusParams() *THSRAPIAvailableSeatStatusParams
- func NewTHSRAPIAvailableSeatStatusParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusParams
- func NewTHSRAPIAvailableSeatStatusParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusParams
- func NewTHSRAPIAvailableSeatStatusParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) SetContext(ctx context.Context)
- func (o *THSRAPIAvailableSeatStatusParams) SetDefaults()
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarCount(dollarCount *bool)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIAvailableSeatStatusParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIAvailableSeatStatusParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIAvailableSeatStatusParams) SetHealth(health *string)
- func (o *THSRAPIAvailableSeatStatusParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIAvailableSeatStatusParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDefaults() *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusParams
- func (o *THSRAPIAvailableSeatStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIAvailableSeatStatusReader
- type THSRAPIAvailableSeatStatusStatus299
- type THSRAPIDailyTimetable1NotModified
- type THSRAPIDailyTimetable1OK
- type THSRAPIDailyTimetable1Params
- func NewTHSRAPIDailyTimetable1Params() *THSRAPIDailyTimetable1Params
- func NewTHSRAPIDailyTimetable1ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable1Params
- func NewTHSRAPIDailyTimetable1ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable1Params
- func NewTHSRAPIDailyTimetable1ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTimetable1Params) SetDefaults()
- func (o *THSRAPIDailyTimetable1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTimetable1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTimetable1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTimetable1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTimetable1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTimetable1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTimetable1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTimetable1Params) SetHealth(health *string)
- func (o *THSRAPIDailyTimetable1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTimetable1Params) SetTrainNo(trainNo string)
- func (o *THSRAPIDailyTimetable1Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDefaults() *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithHealth(health *string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WithTrainNo(trainNo string) *THSRAPIDailyTimetable1Params
- func (o *THSRAPIDailyTimetable1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTimetable1Reader
- type THSRAPIDailyTimetable1Status299
- type THSRAPIDailyTimetable2NotModified
- type THSRAPIDailyTimetable2OK
- type THSRAPIDailyTimetable2Params
- func NewTHSRAPIDailyTimetable2Params() *THSRAPIDailyTimetable2Params
- func NewTHSRAPIDailyTimetable2ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable2Params
- func NewTHSRAPIDailyTimetable2ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable2Params
- func NewTHSRAPIDailyTimetable2ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTimetable2Params) SetDefaults()
- func (o *THSRAPIDailyTimetable2Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTimetable2Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTimetable2Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTimetable2Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTimetable2Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTimetable2Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTimetable2Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTimetable2Params) SetHealth(health *string)
- func (o *THSRAPIDailyTimetable2Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTimetable2Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIDailyTimetable2Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDefaults() *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithHealth(health *string) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTimetable2Params
- func (o *THSRAPIDailyTimetable2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTimetable2Reader
- type THSRAPIDailyTimetable2Status299
- type THSRAPIDailyTimetable3NotModified
- type THSRAPIDailyTimetable3OK
- type THSRAPIDailyTimetable3Params
- func NewTHSRAPIDailyTimetable3Params() *THSRAPIDailyTimetable3Params
- func NewTHSRAPIDailyTimetable3ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable3Params
- func NewTHSRAPIDailyTimetable3ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable3Params
- func NewTHSRAPIDailyTimetable3ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTimetable3Params) SetDefaults()
- func (o *THSRAPIDailyTimetable3Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTimetable3Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTimetable3Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTimetable3Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTimetable3Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTimetable3Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTimetable3Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTimetable3Params) SetHealth(health *string)
- func (o *THSRAPIDailyTimetable3Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTimetable3Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIDailyTimetable3Params) SetTrainNo(trainNo string)
- func (o *THSRAPIDailyTimetable3Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDefaults() *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithHealth(health *string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WithTrainNo(trainNo string) *THSRAPIDailyTimetable3Params
- func (o *THSRAPIDailyTimetable3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTimetable3Reader
- type THSRAPIDailyTimetable3Status299
- type THSRAPIDailyTimetableNotModified
- type THSRAPIDailyTimetableOK
- type THSRAPIDailyTimetableParams
- func NewTHSRAPIDailyTimetableParams() *THSRAPIDailyTimetableParams
- func NewTHSRAPIDailyTimetableParamsWithContext(ctx context.Context) *THSRAPIDailyTimetableParams
- func NewTHSRAPIDailyTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetableParams
- func NewTHSRAPIDailyTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTimetableParams) SetDefaults()
- func (o *THSRAPIDailyTimetableParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTimetableParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTimetableParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTimetableParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTimetableParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTimetableParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTimetableParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTimetableParams) SetHealth(health *string)
- func (o *THSRAPIDailyTimetableParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTimetableParams) WithContext(ctx context.Context) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDefaults() *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithHealth(health *string) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetableParams
- func (o *THSRAPIDailyTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTimetableReader
- type THSRAPIDailyTimetableStatus299
- type THSRAPIDailyTrainInfo1NotModified
- type THSRAPIDailyTrainInfo1OK
- type THSRAPIDailyTrainInfo1Params
- func NewTHSRAPIDailyTrainInfo1Params() *THSRAPIDailyTrainInfo1Params
- func NewTHSRAPIDailyTrainInfo1ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo1Params
- func NewTHSRAPIDailyTrainInfo1ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo1Params
- func NewTHSRAPIDailyTrainInfo1ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTrainInfo1Params) SetDefaults()
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTrainInfo1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTrainInfo1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTrainInfo1Params) SetHealth(health *string)
- func (o *THSRAPIDailyTrainInfo1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTrainInfo1Params) SetTrainNo(trainNo string)
- func (o *THSRAPIDailyTrainInfo1Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDefaults() *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithHealth(health *string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WithTrainNo(trainNo string) *THSRAPIDailyTrainInfo1Params
- func (o *THSRAPIDailyTrainInfo1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTrainInfo1Reader
- type THSRAPIDailyTrainInfo1Status299
- type THSRAPIDailyTrainInfo2NotModified
- type THSRAPIDailyTrainInfo2OK
- type THSRAPIDailyTrainInfo2Params
- func NewTHSRAPIDailyTrainInfo2Params() *THSRAPIDailyTrainInfo2Params
- func NewTHSRAPIDailyTrainInfo2ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo2Params
- func NewTHSRAPIDailyTrainInfo2ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo2Params
- func NewTHSRAPIDailyTrainInfo2ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTrainInfo2Params) SetDefaults()
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTrainInfo2Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTrainInfo2Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTrainInfo2Params) SetHealth(health *string)
- func (o *THSRAPIDailyTrainInfo2Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTrainInfo2Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIDailyTrainInfo2Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDefaults() *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithHealth(health *string) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTrainInfo2Params
- func (o *THSRAPIDailyTrainInfo2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTrainInfo2Reader
- type THSRAPIDailyTrainInfo2Status299
- type THSRAPIDailyTrainInfo3NotModified
- type THSRAPIDailyTrainInfo3OK
- type THSRAPIDailyTrainInfo3Params
- func NewTHSRAPIDailyTrainInfo3Params() *THSRAPIDailyTrainInfo3Params
- func NewTHSRAPIDailyTrainInfo3ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo3Params
- func NewTHSRAPIDailyTrainInfo3ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo3Params
- func NewTHSRAPIDailyTrainInfo3ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTrainInfo3Params) SetDefaults()
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTrainInfo3Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTrainInfo3Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTrainInfo3Params) SetHealth(health *string)
- func (o *THSRAPIDailyTrainInfo3Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTrainInfo3Params) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIDailyTrainInfo3Params) SetTrainNo(trainNo string)
- func (o *THSRAPIDailyTrainInfo3Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDefaults() *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithHealth(health *string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WithTrainNo(trainNo string) *THSRAPIDailyTrainInfo3Params
- func (o *THSRAPIDailyTrainInfo3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTrainInfo3Reader
- type THSRAPIDailyTrainInfo3Status299
- type THSRAPIDailyTrainInfoNotModified
- type THSRAPIDailyTrainInfoOK
- type THSRAPIDailyTrainInfoParams
- func NewTHSRAPIDailyTrainInfoParams() *THSRAPIDailyTrainInfoParams
- func NewTHSRAPIDailyTrainInfoParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfoParams
- func NewTHSRAPIDailyTrainInfoParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfoParams
- func NewTHSRAPIDailyTrainInfoParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) SetContext(ctx context.Context)
- func (o *THSRAPIDailyTrainInfoParams) SetDefaults()
- func (o *THSRAPIDailyTrainInfoParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIDailyTrainInfoParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIDailyTrainInfoParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIDailyTrainInfoParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIDailyTrainInfoParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIDailyTrainInfoParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIDailyTrainInfoParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIDailyTrainInfoParams) SetHealth(health *string)
- func (o *THSRAPIDailyTrainInfoParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIDailyTrainInfoParams) WithContext(ctx context.Context) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDefaults() *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithHealth(health *string) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfoParams
- func (o *THSRAPIDailyTrainInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIDailyTrainInfoReader
- type THSRAPIDailyTrainInfoStatus299
- type THSRAPIGeneralTimetable1NotModified
- type THSRAPIGeneralTimetable1OK
- type THSRAPIGeneralTimetable1Params
- func NewTHSRAPIGeneralTimetable1Params() *THSRAPIGeneralTimetable1Params
- func NewTHSRAPIGeneralTimetable1ParamsWithContext(ctx context.Context) *THSRAPIGeneralTimetable1Params
- func NewTHSRAPIGeneralTimetable1ParamsWithHTTPClient(client *http.Client) *THSRAPIGeneralTimetable1Params
- func NewTHSRAPIGeneralTimetable1ParamsWithTimeout(timeout time.Duration) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) SetContext(ctx context.Context)
- func (o *THSRAPIGeneralTimetable1Params) SetDefaults()
- func (o *THSRAPIGeneralTimetable1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIGeneralTimetable1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIGeneralTimetable1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIGeneralTimetable1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIGeneralTimetable1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIGeneralTimetable1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIGeneralTimetable1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIGeneralTimetable1Params) SetHealth(health *string)
- func (o *THSRAPIGeneralTimetable1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIGeneralTimetable1Params) SetTrainNo(trainNo string)
- func (o *THSRAPIGeneralTimetable1Params) WithContext(ctx context.Context) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDefaults() *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarFilter(dollarFilter *string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarFormat(dollarFormat string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarSelect(dollarSelect *string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarSkip(dollarSkip *string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithDollarTop(dollarTop *int64) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithHTTPClient(client *http.Client) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithHealth(health *string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithTimeout(timeout time.Duration) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WithTrainNo(trainNo string) *THSRAPIGeneralTimetable1Params
- func (o *THSRAPIGeneralTimetable1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIGeneralTimetable1Reader
- type THSRAPIGeneralTimetable1Status299
- type THSRAPIGeneralTimetableNotModified
- type THSRAPIGeneralTimetableOK
- type THSRAPIGeneralTimetableParams
- func NewTHSRAPIGeneralTimetableParams() *THSRAPIGeneralTimetableParams
- func NewTHSRAPIGeneralTimetableParamsWithContext(ctx context.Context) *THSRAPIGeneralTimetableParams
- func NewTHSRAPIGeneralTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIGeneralTimetableParams
- func NewTHSRAPIGeneralTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) SetContext(ctx context.Context)
- func (o *THSRAPIGeneralTimetableParams) SetDefaults()
- func (o *THSRAPIGeneralTimetableParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIGeneralTimetableParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIGeneralTimetableParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIGeneralTimetableParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIGeneralTimetableParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIGeneralTimetableParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIGeneralTimetableParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIGeneralTimetableParams) SetHealth(health *string)
- func (o *THSRAPIGeneralTimetableParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIGeneralTimetableParams) WithContext(ctx context.Context) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDefaults() *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithHealth(health *string) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIGeneralTimetableParams
- func (o *THSRAPIGeneralTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIGeneralTimetableReader
- type THSRAPIGeneralTimetableStatus299
- type THSRAPINewsNotModified
- type THSRAPINewsOK
- type THSRAPINewsParams
- func (o *THSRAPINewsParams) SetContext(ctx context.Context)
- func (o *THSRAPINewsParams) SetDefaults()
- func (o *THSRAPINewsParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPINewsParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPINewsParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPINewsParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPINewsParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPINewsParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPINewsParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPINewsParams) SetHealth(health *string)
- func (o *THSRAPINewsParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPINewsParams) WithContext(ctx context.Context) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDefaults() *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarFilter(dollarFilter *string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarFormat(dollarFormat string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarOrderby(dollarOrderby *string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarSelect(dollarSelect *string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarSkip(dollarSkip *string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithDollarTop(dollarTop *int64) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithHTTPClient(client *http.Client) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithHealth(health *string) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WithTimeout(timeout time.Duration) *THSRAPINewsParams
- func (o *THSRAPINewsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPINewsReader
- type THSRAPINewsStatus299
- type THSRAPIODDailyTimetableNotModified
- type THSRAPIODDailyTimetableOK
- type THSRAPIODDailyTimetableParams
- func NewTHSRAPIODDailyTimetableParams() *THSRAPIODDailyTimetableParams
- func NewTHSRAPIODDailyTimetableParamsWithContext(ctx context.Context) *THSRAPIODDailyTimetableParams
- func NewTHSRAPIODDailyTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIODDailyTimetableParams
- func NewTHSRAPIODDailyTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) SetContext(ctx context.Context)
- func (o *THSRAPIODDailyTimetableParams) SetDefaults()
- func (o *THSRAPIODDailyTimetableParams) SetDestinationStationID(destinationStationID string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIODDailyTimetableParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIODDailyTimetableParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIODDailyTimetableParams) SetHealth(health *string)
- func (o *THSRAPIODDailyTimetableParams) SetOriginStationID(originStationID string)
- func (o *THSRAPIODDailyTimetableParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIODDailyTimetableParams) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIODDailyTimetableParams) WithContext(ctx context.Context) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDefaults() *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDestinationStationID(destinationStationID string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithHealth(health *string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithOriginStationID(originStationID string) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIODDailyTimetableParams
- func (o *THSRAPIODDailyTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIODDailyTimetableReader
- type THSRAPIODDailyTimetableStatus299
- type THSRAPIODFare1NotModified
- type THSRAPIODFare1OK
- type THSRAPIODFare1Params
- func NewTHSRAPIODFare1Params() *THSRAPIODFare1Params
- func NewTHSRAPIODFare1ParamsWithContext(ctx context.Context) *THSRAPIODFare1Params
- func NewTHSRAPIODFare1ParamsWithHTTPClient(client *http.Client) *THSRAPIODFare1Params
- func NewTHSRAPIODFare1ParamsWithTimeout(timeout time.Duration) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) SetContext(ctx context.Context)
- func (o *THSRAPIODFare1Params) SetDefaults()
- func (o *THSRAPIODFare1Params) SetDestinationStationID(destinationStationID string)
- func (o *THSRAPIODFare1Params) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIODFare1Params) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIODFare1Params) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIODFare1Params) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIODFare1Params) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIODFare1Params) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIODFare1Params) SetHTTPClient(client *http.Client)
- func (o *THSRAPIODFare1Params) SetHealth(health *string)
- func (o *THSRAPIODFare1Params) SetOriginStationID(originStationID string)
- func (o *THSRAPIODFare1Params) SetTimeout(timeout time.Duration)
- func (o *THSRAPIODFare1Params) WithContext(ctx context.Context) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDefaults() *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDestinationStationID(destinationStationID string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarFilter(dollarFilter *string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarFormat(dollarFormat string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarSelect(dollarSelect *string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarSkip(dollarSkip *string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithDollarTop(dollarTop *int64) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithHTTPClient(client *http.Client) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithHealth(health *string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithOriginStationID(originStationID string) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WithTimeout(timeout time.Duration) *THSRAPIODFare1Params
- func (o *THSRAPIODFare1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIODFare1Reader
- type THSRAPIODFare1Status299
- type THSRAPIODFareNotModified
- type THSRAPIODFareOK
- type THSRAPIODFareParams
- func (o *THSRAPIODFareParams) SetContext(ctx context.Context)
- func (o *THSRAPIODFareParams) SetDefaults()
- func (o *THSRAPIODFareParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIODFareParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIODFareParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIODFareParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIODFareParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIODFareParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIODFareParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIODFareParams) SetHealth(health *string)
- func (o *THSRAPIODFareParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIODFareParams) WithContext(ctx context.Context) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDefaults() *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarFilter(dollarFilter *string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarFormat(dollarFormat string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarSelect(dollarSelect *string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarSkip(dollarSkip *string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithDollarTop(dollarTop *int64) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithHTTPClient(client *http.Client) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithHealth(health *string) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WithTimeout(timeout time.Duration) *THSRAPIODFareParams
- func (o *THSRAPIODFareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIODFareReader
- type THSRAPIODFareStatus299
- type THSRAPIShapeNotModified
- type THSRAPIShapeOK
- type THSRAPIShapeParams
- func (o *THSRAPIShapeParams) SetContext(ctx context.Context)
- func (o *THSRAPIShapeParams) SetDefaults()
- func (o *THSRAPIShapeParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIShapeParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIShapeParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIShapeParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIShapeParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIShapeParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIShapeParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIShapeParams) SetHealth(health *string)
- func (o *THSRAPIShapeParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIShapeParams) WithContext(ctx context.Context) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDefaults() *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarFilter(dollarFilter *string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarFormat(dollarFormat string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarSelect(dollarSelect *string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarSkip(dollarSkip *string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithDollarTop(dollarTop *int64) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithHTTPClient(client *http.Client) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithHealth(health *string) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WithTimeout(timeout time.Duration) *THSRAPIShapeParams
- func (o *THSRAPIShapeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIShapeReader
- type THSRAPIShapeStatus299
- type THSRAPIStationExitNotModified
- type THSRAPIStationExitOK
- type THSRAPIStationExitParams
- func NewTHSRAPIStationExitParams() *THSRAPIStationExitParams
- func NewTHSRAPIStationExitParamsWithContext(ctx context.Context) *THSRAPIStationExitParams
- func NewTHSRAPIStationExitParamsWithHTTPClient(client *http.Client) *THSRAPIStationExitParams
- func NewTHSRAPIStationExitParamsWithTimeout(timeout time.Duration) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) SetContext(ctx context.Context)
- func (o *THSRAPIStationExitParams) SetDefaults()
- func (o *THSRAPIStationExitParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIStationExitParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIStationExitParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIStationExitParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIStationExitParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIStationExitParams) SetDollarSpatialFilter(dollarSpatialFilter *string)
- func (o *THSRAPIStationExitParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIStationExitParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIStationExitParams) SetHealth(health *string)
- func (o *THSRAPIStationExitParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIStationExitParams) WithContext(ctx context.Context) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDefaults() *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarFormat(dollarFormat string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithDollarTop(dollarTop *int64) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithHTTPClient(client *http.Client) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithHealth(health *string) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WithTimeout(timeout time.Duration) *THSRAPIStationExitParams
- func (o *THSRAPIStationExitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIStationExitReader
- type THSRAPIStationExitStatus299
- type THSRAPIStationNotModified
- type THSRAPIStationOK
- type THSRAPIStationParams
- func NewTHSRAPIStationParams() *THSRAPIStationParams
- func NewTHSRAPIStationParamsWithContext(ctx context.Context) *THSRAPIStationParams
- func NewTHSRAPIStationParamsWithHTTPClient(client *http.Client) *THSRAPIStationParams
- func NewTHSRAPIStationParamsWithTimeout(timeout time.Duration) *THSRAPIStationParams
- func (o *THSRAPIStationParams) SetContext(ctx context.Context)
- func (o *THSRAPIStationParams) SetDefaults()
- func (o *THSRAPIStationParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIStationParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIStationParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIStationParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIStationParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string)
- func (o *THSRAPIStationParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIStationParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIStationParams) SetHealth(health *string)
- func (o *THSRAPIStationParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIStationParams) WithContext(ctx context.Context) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDefaults() *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarFormat(dollarFormat string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithDollarTop(dollarTop *int64) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithHTTPClient(client *http.Client) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithHealth(health *string) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WithTimeout(timeout time.Duration) *THSRAPIStationParams
- func (o *THSRAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIStationReader
- type THSRAPIStationStatus299
- type THSRAPIStationTimetableNotModified
- type THSRAPIStationTimetableOK
- type THSRAPIStationTimetableParams
- func NewTHSRAPIStationTimetableParams() *THSRAPIStationTimetableParams
- func NewTHSRAPIStationTimetableParamsWithContext(ctx context.Context) *THSRAPIStationTimetableParams
- func NewTHSRAPIStationTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIStationTimetableParams
- func NewTHSRAPIStationTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) SetContext(ctx context.Context)
- func (o *THSRAPIStationTimetableParams) SetDefaults()
- func (o *THSRAPIStationTimetableParams) SetDollarFilter(dollarFilter *string)
- func (o *THSRAPIStationTimetableParams) SetDollarFormat(dollarFormat string)
- func (o *THSRAPIStationTimetableParams) SetDollarOrderby(dollarOrderby *string)
- func (o *THSRAPIStationTimetableParams) SetDollarSelect(dollarSelect *string)
- func (o *THSRAPIStationTimetableParams) SetDollarSkip(dollarSkip *string)
- func (o *THSRAPIStationTimetableParams) SetDollarTop(dollarTop *int64)
- func (o *THSRAPIStationTimetableParams) SetHTTPClient(client *http.Client)
- func (o *THSRAPIStationTimetableParams) SetHealth(health *string)
- func (o *THSRAPIStationTimetableParams) SetStationID(stationID string)
- func (o *THSRAPIStationTimetableParams) SetTimeout(timeout time.Duration)
- func (o *THSRAPIStationTimetableParams) SetTrainDate(trainDate strfmt.DateTime)
- func (o *THSRAPIStationTimetableParams) WithContext(ctx context.Context) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDefaults() *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithHealth(health *string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithStationID(stationID string) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIStationTimetableParams
- func (o *THSRAPIStationTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type THSRAPIStationTimetableReader
- type THSRAPIStationTimetableStatus299
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for t h s r API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) THSRAPIAlertInfo ¶
func (a *Client) THSRAPIAlertInfo(params *THSRAPIAlertInfoParams, opts ...ClientOption) (*THSRAPIAlertInfoOK, *THSRAPIAlertInfoStatus299, error)
THSRAPIAlertInfo 取得即時通阻事件資料s
取得即時通阻事件資料
func (*Client) THSRAPIAvailableSeatStatus ¶ added in v0.6.0
func (a *Client) THSRAPIAvailableSeatStatus(params *THSRAPIAvailableSeatStatusParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOK, *THSRAPIAvailableSeatStatusStatus299, error)
THSRAPIAvailableSeatStatus 開發用測試版s 取得當天對號座即時剩餘位資料 原始 列車區段 leg角度 取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)
- (更新頻率為10分鐘) - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
func (*Client) THSRAPIAvailableSeatStatus1 ¶ added in v0.6.0
func (a *Client) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatus1OK, *THSRAPIAvailableSeatStatus1Status299, error)
THSRAPIAvailableSeatStatus1 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 原始 列車區段 leg角度 取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)
- (更新頻率為每日的10、16、22時) - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
func (*Client) THSRAPIAvailableSeatStatusListStation ¶ added in v0.6.0
func (a *Client) THSRAPIAvailableSeatStatusListStation(params *THSRAPIAvailableSeatStatusListStationParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStationOK, *THSRAPIAvailableSeatStatusListStationStatus299, error)
THSRAPIAvailableSeatStatusListStation 取得動態對號座剩餘座位資訊看板資料s
取得動態對號座剩餘座位資訊看板資料
func (*Client) THSRAPIAvailableSeatStatusListStation1 ¶ added in v0.6.0
func (a *Client) THSRAPIAvailableSeatStatusListStation1(params *THSRAPIAvailableSeatStatusListStation1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStation1OK, *THSRAPIAvailableSeatStatusListStation1Status299, error)
THSRAPIAvailableSeatStatusListStation1 取得動態指定s 車站 的對號座剩餘座位資訊看板資料
取得動態指定[車站]的對號座剩餘座位資訊看板資料
func (*Client) THSRAPIAvailableSeatStatusOD ¶ added in v0.7.0
func (a *Client) THSRAPIAvailableSeatStatusOD(params *THSRAPIAvailableSeatStatusODParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusODOK, *THSRAPIAvailableSeatStatusODStatus299, error)
THSRAPIAvailableSeatStatusOD 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 加值型列車起迄段 o d角度 取得指定[日期]對號座即時剩餘位資料(加值型列車起迄段OD角度)
- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
func (*Client) THSRAPIAvailableSeatStatusOD1 ¶ added in v0.7.0
func (a *Client) THSRAPIAvailableSeatStatusOD1(params *THSRAPIAvailableSeatStatusOD1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD1OK, *THSRAPIAvailableSeatStatusOD1Status299, error)
THSRAPIAvailableSeatStatusOD1 開發用測試版s 取得指定 日期 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度 取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)
- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
func (*Client) THSRAPIAvailableSeatStatusOD2 ¶ added in v0.7.0
func (a *Client) THSRAPIAvailableSeatStatusOD2(params *THSRAPIAvailableSeatStatusOD2Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD2OK, *THSRAPIAvailableSeatStatusOD2Status299, error)
THSRAPIAvailableSeatStatusOD2 開發用測試版s 取得指定 日期 車次 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度 取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)
- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**
func (*Client) THSRAPIDailyTimetable ¶
func (a *Client) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams, opts ...ClientOption) (*THSRAPIDailyTimetableOK, *THSRAPIDailyTimetableStatus299, error)
THSRAPIDailyTimetable 取得當天所有車次的時刻表資料s
取得當天所有車次的時刻表資料
func (*Client) THSRAPIDailyTimetable1 ¶
func (a *Client) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params, opts ...ClientOption) (*THSRAPIDailyTimetable1OK, *THSRAPIDailyTimetable1Status299, error)
THSRAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料
取得當天指定[車次]的時刻表資料
func (*Client) THSRAPIDailyTimetable2 ¶
func (a *Client) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params, opts ...ClientOption) (*THSRAPIDailyTimetable2OK, *THSRAPIDailyTimetable2Status299, error)
THSRAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料
取得指定[日期]所有車次的時刻表資料(高鐵提供近28天每日時刻表)
func (*Client) THSRAPIDailyTimetable3 ¶
func (a *Client) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params, opts ...ClientOption) (*THSRAPIDailyTimetable3OK, *THSRAPIDailyTimetable3Status299, error)
THSRAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料
取得指定[日期],[車次]的時刻表資料(高鐵提供近28天每日時刻表)
func (*Client) THSRAPIDailyTrainInfo ¶
func (a *Client) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams, opts ...ClientOption) (*THSRAPIDailyTrainInfoOK, *THSRAPIDailyTrainInfoStatus299, error)
THSRAPIDailyTrainInfo 取得當天所有車次的車次資料s
取得當天所有車次的車次資料
func (*Client) THSRAPIDailyTrainInfo1 ¶
func (a *Client) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo1OK, *THSRAPIDailyTrainInfo1Status299, error)
THSRAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料
取得當天指定[車次]的車次資料
func (*Client) THSRAPIDailyTrainInfo2 ¶
func (a *Client) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo2OK, *THSRAPIDailyTrainInfo2Status299, error)
THSRAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料
取得指定[日期]所有車次的車次資料(高鐵提供近28天每日時刻表)
func (*Client) THSRAPIDailyTrainInfo3 ¶
func (a *Client) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo3OK, *THSRAPIDailyTrainInfo3Status299, error)
THSRAPIDailyTrainInfo3 取得指定s 日期 車次 的車次資料
取得指定[日期],[車次]的車次資料(高鐵提供近28天每日時刻表)
func (*Client) THSRAPIGeneralTimetable ¶
func (a *Client) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams, opts ...ClientOption) (*THSRAPIGeneralTimetableOK, *THSRAPIGeneralTimetableStatus299, error)
THSRAPIGeneralTimetable 取得所有車次的定期時刻表資料s
取得所有車次的定期時刻表資料
func (*Client) THSRAPIGeneralTimetable1 ¶
func (a *Client) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params, opts ...ClientOption) (*THSRAPIGeneralTimetable1OK, *THSRAPIGeneralTimetable1Status299, error)
THSRAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料
取得指定[車次]的定期時刻表資料
func (*Client) THSRAPINews ¶
func (a *Client) THSRAPINews(params *THSRAPINewsParams, opts ...ClientOption) (*THSRAPINewsOK, *THSRAPINewsStatus299, error)
THSRAPINews 取得高鐵最新消息資料s
取得高鐵最新消息資料
func (*Client) THSRAPIODDailyTimetable ¶
func (a *Client) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams, opts ...ClientOption) (*THSRAPIODDailyTimetableOK, *THSRAPIODDailyTimetableStatus299, error)
THSRAPIODDailyTimetable 取得指定s 日期 起迄站間 之時刻表資料
取得指定[日期],[起迄站間]之時刻表資料
func (*Client) THSRAPIODFare ¶
func (a *Client) THSRAPIODFare(params *THSRAPIODFareParams, opts ...ClientOption) (*THSRAPIODFareOK, *THSRAPIODFareStatus299, error)
THSRAPIODFare 取得票價資料s
取得票價資料
func (*Client) THSRAPIODFare1 ¶
func (a *Client) THSRAPIODFare1(params *THSRAPIODFare1Params, opts ...ClientOption) (*THSRAPIODFare1OK, *THSRAPIODFare1Status299, error)
THSRAPIODFare1 取得指定s 起訖站間 之票價資料
取得指定[起訖站間]之票價資料
func (*Client) THSRAPIShape ¶
func (a *Client) THSRAPIShape(params *THSRAPIShapeParams, opts ...ClientOption) (*THSRAPIShapeOK, *THSRAPIShapeStatus299, error)
THSRAPIShape 取得軌道路網實體路線圖資資料s
取得軌道路網實體路線圖資資料
func (*Client) THSRAPIStation ¶
func (a *Client) THSRAPIStation(params *THSRAPIStationParams, opts ...ClientOption) (*THSRAPIStationOK, *THSRAPIStationStatus299, error)
THSRAPIStation 取得車站基本資料s
取得車站基本資料
func (*Client) THSRAPIStationExit ¶
func (a *Client) THSRAPIStationExit(params *THSRAPIStationExitParams, opts ...ClientOption) (*THSRAPIStationExitOK, *THSRAPIStationExitStatus299, error)
THSRAPIStationExit 取得車站出入口基本資料s
取得車站出入口基本資料
func (*Client) THSRAPIStationTimetable ¶
func (a *Client) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams, opts ...ClientOption) (*THSRAPIStationTimetableOK, *THSRAPIStationTimetableStatus299, error)
THSRAPIStationTimetable 取得指定s 日期 車站 的站別時刻表資料
取得指定[日期],[車站]的站別時刻表資料
type ClientOption ¶ added in v0.11.0
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶ added in v0.5.0
type ClientService interface { THSRAPIAlertInfo(params *THSRAPIAlertInfoParams, opts ...ClientOption) (*THSRAPIAlertInfoOK, *THSRAPIAlertInfoStatus299, error) THSRAPIAvailableSeatStatus(params *THSRAPIAvailableSeatStatusParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOK, *THSRAPIAvailableSeatStatusStatus299, error) THSRAPIAvailableSeatStatusListStation(params *THSRAPIAvailableSeatStatusListStationParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStationOK, *THSRAPIAvailableSeatStatusListStationStatus299, error) THSRAPIAvailableSeatStatusListStation1(params *THSRAPIAvailableSeatStatusListStation1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusListStation1OK, *THSRAPIAvailableSeatStatusListStation1Status299, error) THSRAPIAvailableSeatStatus1(params *THSRAPIAvailableSeatStatus1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatus1OK, *THSRAPIAvailableSeatStatus1Status299, error) THSRAPIAvailableSeatStatusOD(params *THSRAPIAvailableSeatStatusODParams, opts ...ClientOption) (*THSRAPIAvailableSeatStatusODOK, *THSRAPIAvailableSeatStatusODStatus299, error) THSRAPIAvailableSeatStatusOD1(params *THSRAPIAvailableSeatStatusOD1Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD1OK, *THSRAPIAvailableSeatStatusOD1Status299, error) THSRAPIAvailableSeatStatusOD2(params *THSRAPIAvailableSeatStatusOD2Params, opts ...ClientOption) (*THSRAPIAvailableSeatStatusOD2OK, *THSRAPIAvailableSeatStatusOD2Status299, error) THSRAPIDailyTimetable(params *THSRAPIDailyTimetableParams, opts ...ClientOption) (*THSRAPIDailyTimetableOK, *THSRAPIDailyTimetableStatus299, error) THSRAPIDailyTimetable1(params *THSRAPIDailyTimetable1Params, opts ...ClientOption) (*THSRAPIDailyTimetable1OK, *THSRAPIDailyTimetable1Status299, error) THSRAPIDailyTimetable2(params *THSRAPIDailyTimetable2Params, opts ...ClientOption) (*THSRAPIDailyTimetable2OK, *THSRAPIDailyTimetable2Status299, error) THSRAPIDailyTimetable3(params *THSRAPIDailyTimetable3Params, opts ...ClientOption) (*THSRAPIDailyTimetable3OK, *THSRAPIDailyTimetable3Status299, error) THSRAPIDailyTrainInfo(params *THSRAPIDailyTrainInfoParams, opts ...ClientOption) (*THSRAPIDailyTrainInfoOK, *THSRAPIDailyTrainInfoStatus299, error) THSRAPIDailyTrainInfo1(params *THSRAPIDailyTrainInfo1Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo1OK, *THSRAPIDailyTrainInfo1Status299, error) THSRAPIDailyTrainInfo2(params *THSRAPIDailyTrainInfo2Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo2OK, *THSRAPIDailyTrainInfo2Status299, error) THSRAPIDailyTrainInfo3(params *THSRAPIDailyTrainInfo3Params, opts ...ClientOption) (*THSRAPIDailyTrainInfo3OK, *THSRAPIDailyTrainInfo3Status299, error) THSRAPIGeneralTimetable(params *THSRAPIGeneralTimetableParams, opts ...ClientOption) (*THSRAPIGeneralTimetableOK, *THSRAPIGeneralTimetableStatus299, error) THSRAPIGeneralTimetable1(params *THSRAPIGeneralTimetable1Params, opts ...ClientOption) (*THSRAPIGeneralTimetable1OK, *THSRAPIGeneralTimetable1Status299, error) THSRAPINews(params *THSRAPINewsParams, opts ...ClientOption) (*THSRAPINewsOK, *THSRAPINewsStatus299, error) THSRAPIODDailyTimetable(params *THSRAPIODDailyTimetableParams, opts ...ClientOption) (*THSRAPIODDailyTimetableOK, *THSRAPIODDailyTimetableStatus299, error) THSRAPIODFare(params *THSRAPIODFareParams, opts ...ClientOption) (*THSRAPIODFareOK, *THSRAPIODFareStatus299, error) THSRAPIODFare1(params *THSRAPIODFare1Params, opts ...ClientOption) (*THSRAPIODFare1OK, *THSRAPIODFare1Status299, error) THSRAPIShape(params *THSRAPIShapeParams, opts ...ClientOption) (*THSRAPIShapeOK, *THSRAPIShapeStatus299, error) THSRAPIStation(params *THSRAPIStationParams, opts ...ClientOption) (*THSRAPIStationOK, *THSRAPIStationStatus299, error) THSRAPIStationExit(params *THSRAPIStationExitParams, opts ...ClientOption) (*THSRAPIStationExitOK, *THSRAPIStationExitStatus299, error) THSRAPIStationTimetable(params *THSRAPIStationTimetableParams, opts ...ClientOption) (*THSRAPIStationTimetableOK, *THSRAPIStationTimetableStatus299, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new t h s r API client.
type THSRAPIAlertInfoNotModified ¶ added in v0.9.0
type THSRAPIAlertInfoNotModified struct { }
THSRAPIAlertInfoNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAlertInfoNotModified ¶ added in v0.9.0
func NewTHSRAPIAlertInfoNotModified() *THSRAPIAlertInfoNotModified
NewTHSRAPIAlertInfoNotModified creates a THSRAPIAlertInfoNotModified with default headers values
func (*THSRAPIAlertInfoNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAlertInfoNotModified) Error() string
type THSRAPIAlertInfoOK ¶
type THSRAPIAlertInfoOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRAlertInfo
}
THSRAPIAlertInfoOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAlertInfoOK ¶
func NewTHSRAPIAlertInfoOK() *THSRAPIAlertInfoOK
NewTHSRAPIAlertInfoOK creates a THSRAPIAlertInfoOK with default headers values
func (*THSRAPIAlertInfoOK) Error ¶
func (o *THSRAPIAlertInfoOK) Error() string
func (*THSRAPIAlertInfoOK) GetPayload ¶
func (o *THSRAPIAlertInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRAlertInfo
type THSRAPIAlertInfoParams ¶
type THSRAPIAlertInfoParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAlertInfoParams contains all the parameters to send to the API endpoint
for the t h s r Api alert info operation. Typically these are written to a http.Request.
func NewTHSRAPIAlertInfoParams ¶
func NewTHSRAPIAlertInfoParams() *THSRAPIAlertInfoParams
NewTHSRAPIAlertInfoParams creates a new THSRAPIAlertInfoParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAlertInfoParamsWithContext ¶
func NewTHSRAPIAlertInfoParamsWithContext(ctx context.Context) *THSRAPIAlertInfoParams
NewTHSRAPIAlertInfoParamsWithContext creates a new THSRAPIAlertInfoParams object with the ability to set a context for a request.
func NewTHSRAPIAlertInfoParamsWithHTTPClient ¶
func NewTHSRAPIAlertInfoParamsWithHTTPClient(client *http.Client) *THSRAPIAlertInfoParams
NewTHSRAPIAlertInfoParamsWithHTTPClient creates a new THSRAPIAlertInfoParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAlertInfoParamsWithTimeout ¶
func NewTHSRAPIAlertInfoParamsWithTimeout(timeout time.Duration) *THSRAPIAlertInfoParams
NewTHSRAPIAlertInfoParamsWithTimeout creates a new THSRAPIAlertInfoParams object with the ability to set a timeout on a request.
func (*THSRAPIAlertInfoParams) SetContext ¶
func (o *THSRAPIAlertInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAlertInfoParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api alert info params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAlertInfoParams) SetDollarFilter ¶
func (o *THSRAPIAlertInfoParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDollarFormat ¶
func (o *THSRAPIAlertInfoParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDollarOrderby ¶
func (o *THSRAPIAlertInfoParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDollarSelect ¶
func (o *THSRAPIAlertInfoParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDollarSkip ¶
func (o *THSRAPIAlertInfoParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetDollarTop ¶
func (o *THSRAPIAlertInfoParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetHTTPClient ¶
func (o *THSRAPIAlertInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAlertInfoParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) SetTimeout ¶
func (o *THSRAPIAlertInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithContext ¶
func (o *THSRAPIAlertInfoParams) WithContext(ctx context.Context) *THSRAPIAlertInfoParams
WithContext adds the context to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAlertInfoParams) WithDefaults() *THSRAPIAlertInfoParams
WithDefaults hydrates default values in the t h s r Api alert info params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAlertInfoParams) WithDollarFilter ¶
func (o *THSRAPIAlertInfoParams) WithDollarFilter(dollarFilter *string) *THSRAPIAlertInfoParams
WithDollarFilter adds the dollarFilter to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDollarFormat ¶
func (o *THSRAPIAlertInfoParams) WithDollarFormat(dollarFormat string) *THSRAPIAlertInfoParams
WithDollarFormat adds the dollarFormat to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDollarOrderby ¶
func (o *THSRAPIAlertInfoParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAlertInfoParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDollarSelect ¶
func (o *THSRAPIAlertInfoParams) WithDollarSelect(dollarSelect *string) *THSRAPIAlertInfoParams
WithDollarSelect adds the dollarSelect to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDollarSkip ¶
func (o *THSRAPIAlertInfoParams) WithDollarSkip(dollarSkip *string) *THSRAPIAlertInfoParams
WithDollarSkip adds the dollarSkip to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithDollarTop ¶
func (o *THSRAPIAlertInfoParams) WithDollarTop(dollarTop *int64) *THSRAPIAlertInfoParams
WithDollarTop adds the dollarTop to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithHTTPClient ¶
func (o *THSRAPIAlertInfoParams) WithHTTPClient(client *http.Client) *THSRAPIAlertInfoParams
WithHTTPClient adds the HTTPClient to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAlertInfoParams) WithHealth(health *string) *THSRAPIAlertInfoParams
WithHealth adds the health to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WithTimeout ¶
func (o *THSRAPIAlertInfoParams) WithTimeout(timeout time.Duration) *THSRAPIAlertInfoParams
WithTimeout adds the timeout to the t h s r Api alert info params
func (*THSRAPIAlertInfoParams) WriteToRequest ¶
func (o *THSRAPIAlertInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAlertInfoReader ¶
type THSRAPIAlertInfoReader struct {
// contains filtered or unexported fields
}
THSRAPIAlertInfoReader is a Reader for the THSRAPIAlertInfo structure.
func (*THSRAPIAlertInfoReader) ReadResponse ¶
func (o *THSRAPIAlertInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAlertInfoStatus299 ¶ added in v0.12.0
type THSRAPIAlertInfoStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAlertInfoStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAlertInfoStatus299 ¶ added in v0.12.0
func NewTHSRAPIAlertInfoStatus299() *THSRAPIAlertInfoStatus299
NewTHSRAPIAlertInfoStatus299 creates a THSRAPIAlertInfoStatus299 with default headers values
func (*THSRAPIAlertInfoStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIAlertInfoStatus299) Error() string
func (*THSRAPIAlertInfoStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAlertInfoStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatus1NotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatus1NotModified struct { }
THSRAPIAvailableSeatStatus1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatus1NotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatus1NotModified() *THSRAPIAvailableSeatStatus1NotModified
NewTHSRAPIAvailableSeatStatus1NotModified creates a THSRAPIAvailableSeatStatus1NotModified with default headers values
func (*THSRAPIAvailableSeatStatus1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatus1NotModified) Error() string
type THSRAPIAvailableSeatStatus1OK ¶ added in v0.6.0
type THSRAPIAvailableSeatStatus1OK struct {
Payload *models.PTXAPIRailModelV2THSRAvailableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat
}
THSRAPIAvailableSeatStatus1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatus1OK ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatus1OK() *THSRAPIAvailableSeatStatus1OK
NewTHSRAPIAvailableSeatStatus1OK creates a THSRAPIAvailableSeatStatus1OK with default headers values
func (*THSRAPIAvailableSeatStatus1OK) Error ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1OK) Error() string
func (*THSRAPIAvailableSeatStatus1OK) GetPayload ¶ added in v0.6.0
type THSRAPIAvailableSeatStatus1Params ¶ added in v0.6.0
type THSRAPIAvailableSeatStatus1Params struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatus1Params contains all the parameters to send to the API endpoint
for the t h s r Api available seat status 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatus1Params ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatus1Params() *THSRAPIAvailableSeatStatus1Params
NewTHSRAPIAvailableSeatStatus1Params creates a new THSRAPIAvailableSeatStatus1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatus1ParamsWithContext ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatus1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatus1Params
NewTHSRAPIAvailableSeatStatus1ParamsWithContext creates a new THSRAPIAvailableSeatStatus1Params object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatus1ParamsWithHTTPClient ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatus1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus1Params
NewTHSRAPIAvailableSeatStatus1ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatus1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatus1ParamsWithTimeout ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatus1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus1Params
NewTHSRAPIAvailableSeatStatus1ParamsWithTimeout creates a new THSRAPIAvailableSeatStatus1Params object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatus1Params) SetContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatus1Params) SetDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatus1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) SetTrainDate ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatus1Params
WithContext adds the context to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDefaults() *THSRAPIAvailableSeatStatus1Params
WithDefaults hydrates default values in the t h s r Api available seat status 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatus1Params) WithDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatus1Params
WithDollarCount adds the dollarCount to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatus1Params
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatus1Params
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatus1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatus1Params
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatus1Params
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatus1Params
WithDollarTop adds the dollarTop to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatus1Params
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatus1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatus1Params
WithHealth adds the health to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatus1Params
WithTimeout adds the timeout to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WithTrainDate ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatus1Params
WithTrainDate adds the trainDate to the t h s r Api available seat status 1 params
func (*THSRAPIAvailableSeatStatus1Params) WriteToRequest ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatus1Reader ¶ added in v0.6.0
type THSRAPIAvailableSeatStatus1Reader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatus1Reader is a Reader for the THSRAPIAvailableSeatStatus1 structure.
func (*THSRAPIAvailableSeatStatus1Reader) ReadResponse ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatus1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatus1Status299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatus1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatus1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatus1Status299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatus1Status299() *THSRAPIAvailableSeatStatus1Status299
NewTHSRAPIAvailableSeatStatus1Status299 creates a THSRAPIAvailableSeatStatus1Status299 with default headers values
func (*THSRAPIAvailableSeatStatus1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatus1Status299) Error() string
func (*THSRAPIAvailableSeatStatus1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatus1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusListStation1NotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusListStation1NotModified struct { }
THSRAPIAvailableSeatStatusListStation1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusListStation1NotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusListStation1NotModified() *THSRAPIAvailableSeatStatusListStation1NotModified
NewTHSRAPIAvailableSeatStatusListStation1NotModified creates a THSRAPIAvailableSeatStatusListStation1NotModified with default headers values
func (*THSRAPIAvailableSeatStatusListStation1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStation1NotModified) Error() string
type THSRAPIAvailableSeatStatusListStation1OK ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStation1OK struct {
Payload *models.PTXAPIRailModelV2THSRAvailableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat
}
THSRAPIAvailableSeatStatusListStation1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusListStation1OK ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStation1OK() *THSRAPIAvailableSeatStatusListStation1OK
NewTHSRAPIAvailableSeatStatusListStation1OK creates a THSRAPIAvailableSeatStatusListStation1OK with default headers values
func (*THSRAPIAvailableSeatStatusListStation1OK) Error ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1OK) Error() string
func (*THSRAPIAvailableSeatStatusListStation1OK) GetPayload ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStation1Params ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStation1Params struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* StationID. 起點車站代碼 */ StationID string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusListStation1Params contains all the parameters to send to the API endpoint
for the t h s r Api available seat status list station 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusListStation1Params ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStation1Params() *THSRAPIAvailableSeatStatusListStation1Params
NewTHSRAPIAvailableSeatStatusListStation1Params creates a new THSRAPIAvailableSeatStatusListStation1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithContext ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStation1Params
NewTHSRAPIAvailableSeatStatusListStation1ParamsWithContext creates a new THSRAPIAvailableSeatStatusListStation1Params object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithHTTPClient ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStation1Params
NewTHSRAPIAvailableSeatStatusListStation1ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusListStation1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithTimeout ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStation1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStation1Params
NewTHSRAPIAvailableSeatStatusListStation1ParamsWithTimeout creates a new THSRAPIAvailableSeatStatusListStation1Params object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusListStation1Params) SetContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status list station 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetStationID ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetStationID(stationID string)
SetStationID adds the stationId to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) SetTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStation1Params
WithContext adds the context to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDefaults() *THSRAPIAvailableSeatStatusListStation1Params
WithDefaults hydrates default values in the t h s r Api available seat status list station 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarCount adds the dollarCount to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusListStation1Params
WithDollarTop adds the dollarTop to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStation1Params
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusListStation1Params
WithHealth adds the health to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithStationID ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithStationID(stationID string) *THSRAPIAvailableSeatStatusListStation1Params
WithStationID adds the stationID to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WithTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStation1Params
WithTimeout adds the timeout to the t h s r Api available seat status list station 1 params
func (*THSRAPIAvailableSeatStatusListStation1Params) WriteToRequest ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusListStation1Reader ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStation1Reader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusListStation1Reader is a Reader for the THSRAPIAvailableSeatStatusListStation1 structure.
func (*THSRAPIAvailableSeatStatusListStation1Reader) ReadResponse ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStation1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusListStation1Status299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusListStation1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusListStation1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusListStation1Status299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusListStation1Status299() *THSRAPIAvailableSeatStatusListStation1Status299
NewTHSRAPIAvailableSeatStatusListStation1Status299 creates a THSRAPIAvailableSeatStatusListStation1Status299 with default headers values
func (*THSRAPIAvailableSeatStatusListStation1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStation1Status299) Error() string
func (*THSRAPIAvailableSeatStatusListStation1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStation1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusListStationNotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusListStationNotModified struct { }
THSRAPIAvailableSeatStatusListStationNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusListStationNotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusListStationNotModified() *THSRAPIAvailableSeatStatusListStationNotModified
NewTHSRAPIAvailableSeatStatusListStationNotModified creates a THSRAPIAvailableSeatStatusListStationNotModified with default headers values
func (*THSRAPIAvailableSeatStatusListStationNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStationNotModified) Error() string
type THSRAPIAvailableSeatStatusListStationOK ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStationOK struct {
Payload *models.PTXAPIRailModelV2THSRAvailableSeatStatusOldWrapperPTXServiceDTORailSpecificationV2THSROldAvailableSeat
}
THSRAPIAvailableSeatStatusListStationOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusListStationOK ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStationOK() *THSRAPIAvailableSeatStatusListStationOK
NewTHSRAPIAvailableSeatStatusListStationOK creates a THSRAPIAvailableSeatStatusListStationOK with default headers values
func (*THSRAPIAvailableSeatStatusListStationOK) Error ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationOK) Error() string
func (*THSRAPIAvailableSeatStatusListStationOK) GetPayload ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStationParams ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStationParams struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusListStationParams contains all the parameters to send to the API endpoint
for the t h s r Api available seat status list station operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusListStationParams ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStationParams() *THSRAPIAvailableSeatStatusListStationParams
NewTHSRAPIAvailableSeatStatusListStationParams creates a new THSRAPIAvailableSeatStatusListStationParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusListStationParamsWithContext ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStationParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStationParams
NewTHSRAPIAvailableSeatStatusListStationParamsWithContext creates a new THSRAPIAvailableSeatStatusListStationParams object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusListStationParamsWithHTTPClient ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStationParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStationParams
NewTHSRAPIAvailableSeatStatusListStationParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusListStationParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusListStationParamsWithTimeout ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusListStationParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStationParams
NewTHSRAPIAvailableSeatStatusListStationParamsWithTimeout creates a new THSRAPIAvailableSeatStatusListStationParams object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusListStationParams) SetContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status list station params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) SetTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusListStationParams
WithContext adds the context to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDefaults() *THSRAPIAvailableSeatStatusListStationParams
WithDefaults hydrates default values in the t h s r Api available seat status list station params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusListStationParams
WithDollarCount adds the dollarCount to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusListStationParams
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusListStationParams
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusListStationParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusListStationParams
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusListStationParams
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusListStationParams
WithDollarTop adds the dollarTop to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusListStationParams
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusListStationParams
WithHealth adds the health to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WithTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusListStationParams
WithTimeout adds the timeout to the t h s r Api available seat status list station params
func (*THSRAPIAvailableSeatStatusListStationParams) WriteToRequest ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusListStationReader ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusListStationReader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusListStationReader is a Reader for the THSRAPIAvailableSeatStatusListStation structure.
func (*THSRAPIAvailableSeatStatusListStationReader) ReadResponse ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusListStationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusListStationStatus299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusListStationStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusListStationStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusListStationStatus299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusListStationStatus299() *THSRAPIAvailableSeatStatusListStationStatus299
NewTHSRAPIAvailableSeatStatusListStationStatus299 creates a THSRAPIAvailableSeatStatusListStationStatus299 with default headers values
func (*THSRAPIAvailableSeatStatusListStationStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStationStatus299) Error() string
func (*THSRAPIAvailableSeatStatusListStationStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusListStationStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusNotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusNotModified struct { }
THSRAPIAvailableSeatStatusNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusNotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusNotModified() *THSRAPIAvailableSeatStatusNotModified
NewTHSRAPIAvailableSeatStatusNotModified creates a THSRAPIAvailableSeatStatusNotModified with default headers values
func (*THSRAPIAvailableSeatStatusNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusNotModified) Error() string
type THSRAPIAvailableSeatStatusOD1NotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusOD1NotModified struct { }
THSRAPIAvailableSeatStatusOD1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusOD1NotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusOD1NotModified() *THSRAPIAvailableSeatStatusOD1NotModified
NewTHSRAPIAvailableSeatStatusOD1NotModified creates a THSRAPIAvailableSeatStatusOD1NotModified with default headers values
func (*THSRAPIAvailableSeatStatusOD1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD1NotModified) Error() string
type THSRAPIAvailableSeatStatusOD1OK ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD1OK struct {
Payload *models.PTXAPIRailModelV2THSRODAvailableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
}
THSRAPIAvailableSeatStatusOD1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusOD1OK ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD1OK() *THSRAPIAvailableSeatStatusOD1OK
NewTHSRAPIAvailableSeatStatusOD1OK creates a THSRAPIAvailableSeatStatusOD1OK with default headers values
func (*THSRAPIAvailableSeatStatusOD1OK) Error ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1OK) Error() string
func (*THSRAPIAvailableSeatStatusOD1OK) GetPayload ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD1Params ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD1Params struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* DestinationStationID. 指定迄止車站 */ DestinationStationID string /* OriginStationID. 指定起始車站 */ OriginStationID string /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusOD1Params contains all the parameters to send to the API endpoint
for the t h s r Api available seat status o d 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusOD1Params ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD1Params() *THSRAPIAvailableSeatStatusOD1Params
NewTHSRAPIAvailableSeatStatusOD1Params creates a new THSRAPIAvailableSeatStatusOD1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithContext ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD1Params
NewTHSRAPIAvailableSeatStatusOD1ParamsWithContext creates a new THSRAPIAvailableSeatStatusOD1Params object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithHTTPClient ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD1Params
NewTHSRAPIAvailableSeatStatusOD1ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusOD1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithTimeout ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD1ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD1Params
NewTHSRAPIAvailableSeatStatusOD1ParamsWithTimeout creates a new THSRAPIAvailableSeatStatusOD1Params object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusOD1Params) SetContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status o d 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusOD1Params) SetDestinationStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDestinationStationID(destinationStationID string)
SetDestinationStationID adds the destinationStationId to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetOriginStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetOriginStationID(originStationID string)
SetOriginStationID adds the originStationId to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) SetTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD1Params
WithContext adds the context to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDefaults() *THSRAPIAvailableSeatStatusOD1Params
WithDefaults hydrates default values in the t h s r Api available seat status o d 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusOD1Params) WithDestinationStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatusOD1Params
WithDestinationStationID adds the destinationStationID to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusOD1Params
WithDollarCount adds the dollarCount to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusOD1Params
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusOD1Params
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusOD1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusOD1Params
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusOD1Params
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusOD1Params
WithDollarTop adds the dollarTop to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD1Params
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusOD1Params
WithHealth adds the health to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithOriginStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatusOD1Params
WithOriginStationID adds the originStationID to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD1Params
WithTimeout adds the timeout to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WithTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusOD1Params
WithTrainDate adds the trainDate to the t h s r Api available seat status o d 1 params
func (*THSRAPIAvailableSeatStatusOD1Params) WriteToRequest ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusOD1Reader ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD1Reader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusOD1Reader is a Reader for the THSRAPIAvailableSeatStatusOD1 structure.
func (*THSRAPIAvailableSeatStatusOD1Reader) ReadResponse ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusOD1Status299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusOD1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusOD1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusOD1Status299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusOD1Status299() *THSRAPIAvailableSeatStatusOD1Status299
NewTHSRAPIAvailableSeatStatusOD1Status299 creates a THSRAPIAvailableSeatStatusOD1Status299 with default headers values
func (*THSRAPIAvailableSeatStatusOD1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD1Status299) Error() string
func (*THSRAPIAvailableSeatStatusOD1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusOD2NotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusOD2NotModified struct { }
THSRAPIAvailableSeatStatusOD2NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusOD2NotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusOD2NotModified() *THSRAPIAvailableSeatStatusOD2NotModified
NewTHSRAPIAvailableSeatStatusOD2NotModified creates a THSRAPIAvailableSeatStatusOD2NotModified with default headers values
func (*THSRAPIAvailableSeatStatusOD2NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD2NotModified) Error() string
type THSRAPIAvailableSeatStatusOD2OK ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD2OK struct {
Payload *models.PTXAPIRailModelV2THSRODAvailableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
}
THSRAPIAvailableSeatStatusOD2OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusOD2OK ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD2OK() *THSRAPIAvailableSeatStatusOD2OK
NewTHSRAPIAvailableSeatStatusOD2OK creates a THSRAPIAvailableSeatStatusOD2OK with default headers values
func (*THSRAPIAvailableSeatStatusOD2OK) Error ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2OK) Error() string
func (*THSRAPIAvailableSeatStatusOD2OK) GetPayload ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD2Params ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD2Params struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* DestinationStationID. 指定迄止車站 */ DestinationStationID string /* OriginStationID. 指定起始車站 */ OriginStationID string /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* TrainNo. 欲查詢車次號碼(格式: yyyy-MM-dd) */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusOD2Params contains all the parameters to send to the API endpoint
for the t h s r Api available seat status o d 2 operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusOD2Params ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD2Params() *THSRAPIAvailableSeatStatusOD2Params
NewTHSRAPIAvailableSeatStatusOD2Params creates a new THSRAPIAvailableSeatStatusOD2Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithContext ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD2Params
NewTHSRAPIAvailableSeatStatusOD2ParamsWithContext creates a new THSRAPIAvailableSeatStatusOD2Params object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithHTTPClient ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD2Params
NewTHSRAPIAvailableSeatStatusOD2ParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusOD2Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithTimeout ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusOD2ParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD2Params
NewTHSRAPIAvailableSeatStatusOD2ParamsWithTimeout creates a new THSRAPIAvailableSeatStatusOD2Params object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusOD2Params) SetContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status o d 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusOD2Params) SetDestinationStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDestinationStationID(destinationStationID string)
SetDestinationStationID adds the destinationStationId to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetOriginStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetOriginStationID(originStationID string)
SetOriginStationID adds the originStationId to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) SetTrainNo ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusOD2Params
WithContext adds the context to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDefaults() *THSRAPIAvailableSeatStatusOD2Params
WithDefaults hydrates default values in the t h s r Api available seat status o d 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusOD2Params) WithDestinationStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDestinationStationID(destinationStationID string) *THSRAPIAvailableSeatStatusOD2Params
WithDestinationStationID adds the destinationStationID to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusOD2Params
WithDollarCount adds the dollarCount to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusOD2Params
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusOD2Params
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusOD2Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusOD2Params
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusOD2Params
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusOD2Params
WithDollarTop adds the dollarTop to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusOD2Params
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithHealth(health *string) *THSRAPIAvailableSeatStatusOD2Params
WithHealth adds the health to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithOriginStationID ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithOriginStationID(originStationID string) *THSRAPIAvailableSeatStatusOD2Params
WithOriginStationID adds the originStationID to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusOD2Params
WithTimeout adds the timeout to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusOD2Params
WithTrainDate adds the trainDate to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WithTrainNo ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WithTrainNo(trainNo string) *THSRAPIAvailableSeatStatusOD2Params
WithTrainNo adds the trainNo to the t h s r Api available seat status o d 2 params
func (*THSRAPIAvailableSeatStatusOD2Params) WriteToRequest ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusOD2Reader ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusOD2Reader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusOD2Reader is a Reader for the THSRAPIAvailableSeatStatusOD2 structure.
func (*THSRAPIAvailableSeatStatusOD2Reader) ReadResponse ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusOD2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusOD2Status299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusOD2Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusOD2Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusOD2Status299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusOD2Status299() *THSRAPIAvailableSeatStatusOD2Status299
NewTHSRAPIAvailableSeatStatusOD2Status299 creates a THSRAPIAvailableSeatStatusOD2Status299 with default headers values
func (*THSRAPIAvailableSeatStatusOD2Status299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD2Status299) Error() string
func (*THSRAPIAvailableSeatStatusOD2Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusOD2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusODNotModified ¶ added in v0.9.0
type THSRAPIAvailableSeatStatusODNotModified struct { }
THSRAPIAvailableSeatStatusODNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIAvailableSeatStatusODNotModified ¶ added in v0.9.0
func NewTHSRAPIAvailableSeatStatusODNotModified() *THSRAPIAvailableSeatStatusODNotModified
NewTHSRAPIAvailableSeatStatusODNotModified creates a THSRAPIAvailableSeatStatusODNotModified with default headers values
func (*THSRAPIAvailableSeatStatusODNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusODNotModified) Error() string
type THSRAPIAvailableSeatStatusODOK ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusODOK struct {
Payload *models.PTXAPIRailModelV2THSRODAvailableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRODAvailableSeat
}
THSRAPIAvailableSeatStatusODOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusODOK ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusODOK() *THSRAPIAvailableSeatStatusODOK
NewTHSRAPIAvailableSeatStatusODOK creates a THSRAPIAvailableSeatStatusODOK with default headers values
func (*THSRAPIAvailableSeatStatusODOK) Error ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODOK) Error() string
func (*THSRAPIAvailableSeatStatusODOK) GetPayload ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusODParams ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusODParams struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusODParams contains all the parameters to send to the API endpoint
for the t h s r Api available seat status o d operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusODParams ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusODParams() *THSRAPIAvailableSeatStatusODParams
NewTHSRAPIAvailableSeatStatusODParams creates a new THSRAPIAvailableSeatStatusODParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusODParamsWithContext ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusODParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusODParams
NewTHSRAPIAvailableSeatStatusODParamsWithContext creates a new THSRAPIAvailableSeatStatusODParams object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusODParamsWithHTTPClient ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusODParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusODParams
NewTHSRAPIAvailableSeatStatusODParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusODParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusODParamsWithTimeout ¶ added in v0.7.0
func NewTHSRAPIAvailableSeatStatusODParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusODParams
NewTHSRAPIAvailableSeatStatusODParamsWithTimeout creates a new THSRAPIAvailableSeatStatusODParams object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusODParams) SetContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status o d params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusODParams) SetDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusODParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) SetTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithContext ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusODParams
WithContext adds the context to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDefaults() *THSRAPIAvailableSeatStatusODParams
WithDefaults hydrates default values in the t h s r Api available seat status o d params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusODParams) WithDollarCount ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusODParams
WithDollarCount adds the dollarCount to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarFilter ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusODParams
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarFormat ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusODParams
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarOrderby ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusODParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarSelect ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusODParams
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarSkip ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusODParams
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithDollarTop ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusODParams
WithDollarTop adds the dollarTop to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithHTTPClient ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusODParams
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusODParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusODParams
WithHealth adds the health to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithTimeout ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusODParams
WithTimeout adds the timeout to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WithTrainDate ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIAvailableSeatStatusODParams
WithTrainDate adds the trainDate to the t h s r Api available seat status o d params
func (*THSRAPIAvailableSeatStatusODParams) WriteToRequest ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusODReader ¶ added in v0.7.0
type THSRAPIAvailableSeatStatusODReader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusODReader is a Reader for the THSRAPIAvailableSeatStatusOD structure.
func (*THSRAPIAvailableSeatStatusODReader) ReadResponse ¶ added in v0.7.0
func (o *THSRAPIAvailableSeatStatusODReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusODStatus299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusODStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusODStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusODStatus299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusODStatus299() *THSRAPIAvailableSeatStatusODStatus299
NewTHSRAPIAvailableSeatStatusODStatus299 creates a THSRAPIAvailableSeatStatusODStatus299 with default headers values
func (*THSRAPIAvailableSeatStatusODStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusODStatus299) Error() string
func (*THSRAPIAvailableSeatStatusODStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusODStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIAvailableSeatStatusOK ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusOK struct {
Payload *models.PTXAPIRailModelV2THSRAvailableSeatStatusWrapperPTXServiceDTORailSpecificationV2THSRAvailableSeat
}
THSRAPIAvailableSeatStatusOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIAvailableSeatStatusOK ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusOK() *THSRAPIAvailableSeatStatusOK
NewTHSRAPIAvailableSeatStatusOK creates a THSRAPIAvailableSeatStatusOK with default headers values
func (*THSRAPIAvailableSeatStatusOK) Error ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusOK) Error() string
func (*THSRAPIAvailableSeatStatusOK) GetPayload ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusParams ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusParams struct { /* DollarCount. 查詢數量 */ DollarCount *bool /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIAvailableSeatStatusParams contains all the parameters to send to the API endpoint
for the t h s r Api available seat status operation. Typically these are written to a http.Request.
func NewTHSRAPIAvailableSeatStatusParams ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusParams() *THSRAPIAvailableSeatStatusParams
NewTHSRAPIAvailableSeatStatusParams creates a new THSRAPIAvailableSeatStatusParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIAvailableSeatStatusParamsWithContext ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusParamsWithContext(ctx context.Context) *THSRAPIAvailableSeatStatusParams
NewTHSRAPIAvailableSeatStatusParamsWithContext creates a new THSRAPIAvailableSeatStatusParams object with the ability to set a context for a request.
func NewTHSRAPIAvailableSeatStatusParamsWithHTTPClient ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusParamsWithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusParams
NewTHSRAPIAvailableSeatStatusParamsWithHTTPClient creates a new THSRAPIAvailableSeatStatusParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIAvailableSeatStatusParamsWithTimeout ¶ added in v0.6.0
func NewTHSRAPIAvailableSeatStatusParamsWithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusParams
NewTHSRAPIAvailableSeatStatusParamsWithTimeout creates a new THSRAPIAvailableSeatStatusParams object with the ability to set a timeout on a request.
func (*THSRAPIAvailableSeatStatusParams) SetContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api available seat status params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusParams) SetDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarCount(dollarCount *bool)
SetDollarCount adds the dollarCount to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) SetTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithContext ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithContext(ctx context.Context) *THSRAPIAvailableSeatStatusParams
WithContext adds the context to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIAvailableSeatStatusParams) WithDefaults() *THSRAPIAvailableSeatStatusParams
WithDefaults hydrates default values in the t h s r Api available seat status params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIAvailableSeatStatusParams) WithDollarCount ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarCount(dollarCount *bool) *THSRAPIAvailableSeatStatusParams
WithDollarCount adds the dollarCount to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarFilter ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarFilter(dollarFilter *string) *THSRAPIAvailableSeatStatusParams
WithDollarFilter adds the dollarFilter to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarFormat ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarFormat(dollarFormat string) *THSRAPIAvailableSeatStatusParams
WithDollarFormat adds the dollarFormat to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarOrderby ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIAvailableSeatStatusParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarSelect ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarSelect(dollarSelect *string) *THSRAPIAvailableSeatStatusParams
WithDollarSelect adds the dollarSelect to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarSkip ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarSkip(dollarSkip *string) *THSRAPIAvailableSeatStatusParams
WithDollarSkip adds the dollarSkip to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithDollarTop ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithDollarTop(dollarTop *int64) *THSRAPIAvailableSeatStatusParams
WithDollarTop adds the dollarTop to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithHTTPClient ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithHTTPClient(client *http.Client) *THSRAPIAvailableSeatStatusParams
WithHTTPClient adds the HTTPClient to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusParams) WithHealth(health *string) *THSRAPIAvailableSeatStatusParams
WithHealth adds the health to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WithTimeout ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WithTimeout(timeout time.Duration) *THSRAPIAvailableSeatStatusParams
WithTimeout adds the timeout to the t h s r Api available seat status params
func (*THSRAPIAvailableSeatStatusParams) WriteToRequest ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIAvailableSeatStatusReader ¶ added in v0.6.0
type THSRAPIAvailableSeatStatusReader struct {
// contains filtered or unexported fields
}
THSRAPIAvailableSeatStatusReader is a Reader for the THSRAPIAvailableSeatStatus structure.
func (*THSRAPIAvailableSeatStatusReader) ReadResponse ¶ added in v0.6.0
func (o *THSRAPIAvailableSeatStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIAvailableSeatStatusStatus299 ¶ added in v0.12.0
type THSRAPIAvailableSeatStatusStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIAvailableSeatStatusStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIAvailableSeatStatusStatus299 ¶ added in v0.12.0
func NewTHSRAPIAvailableSeatStatusStatus299() *THSRAPIAvailableSeatStatusStatus299
NewTHSRAPIAvailableSeatStatusStatus299 creates a THSRAPIAvailableSeatStatusStatus299 with default headers values
func (*THSRAPIAvailableSeatStatusStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusStatus299) Error() string
func (*THSRAPIAvailableSeatStatusStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIAvailableSeatStatusStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTimetable1NotModified ¶ added in v0.9.0
type THSRAPIDailyTimetable1NotModified struct { }
THSRAPIDailyTimetable1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTimetable1NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTimetable1NotModified() *THSRAPIDailyTimetable1NotModified
NewTHSRAPIDailyTimetable1NotModified creates a THSRAPIDailyTimetable1NotModified with default headers values
func (*THSRAPIDailyTimetable1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable1NotModified) Error() string
type THSRAPIDailyTimetable1OK ¶
type THSRAPIDailyTimetable1OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
THSRAPIDailyTimetable1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTimetable1OK ¶
func NewTHSRAPIDailyTimetable1OK() *THSRAPIDailyTimetable1OK
NewTHSRAPIDailyTimetable1OK creates a THSRAPIDailyTimetable1OK with default headers values
func (*THSRAPIDailyTimetable1OK) Error ¶
func (o *THSRAPIDailyTimetable1OK) Error() string
func (*THSRAPIDailyTimetable1OK) GetPayload ¶
func (o *THSRAPIDailyTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
type THSRAPIDailyTimetable1Params ¶
type THSRAPIDailyTimetable1Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainNo. 欲查詢車次的代碼 */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTimetable1Params contains all the parameters to send to the API endpoint
for the t h s r Api daily timetable 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTimetable1Params ¶
func NewTHSRAPIDailyTimetable1Params() *THSRAPIDailyTimetable1Params
NewTHSRAPIDailyTimetable1Params creates a new THSRAPIDailyTimetable1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTimetable1ParamsWithContext ¶
func NewTHSRAPIDailyTimetable1ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable1Params
NewTHSRAPIDailyTimetable1ParamsWithContext creates a new THSRAPIDailyTimetable1Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTimetable1ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTimetable1ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable1Params
NewTHSRAPIDailyTimetable1ParamsWithHTTPClient creates a new THSRAPIDailyTimetable1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTimetable1ParamsWithTimeout ¶
func NewTHSRAPIDailyTimetable1ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable1Params
NewTHSRAPIDailyTimetable1ParamsWithTimeout creates a new THSRAPIDailyTimetable1Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTimetable1Params) SetContext ¶
func (o *THSRAPIDailyTimetable1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily timetable 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable1Params) SetDollarFilter ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDollarFormat ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDollarSelect ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDollarSkip ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetDollarTop ¶
func (o *THSRAPIDailyTimetable1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetHTTPClient ¶
func (o *THSRAPIDailyTimetable1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetTimeout ¶
func (o *THSRAPIDailyTimetable1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) SetTrainNo ¶
func (o *THSRAPIDailyTimetable1Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithContext ¶
func (o *THSRAPIDailyTimetable1Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable1Params
WithContext adds the context to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable1Params) WithDefaults() *THSRAPIDailyTimetable1Params
WithDefaults hydrates default values in the t h s r Api daily timetable 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable1Params) WithDollarFilter ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable1Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDollarFormat ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable1Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDollarSelect ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable1Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDollarSkip ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable1Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithDollarTop ¶
func (o *THSRAPIDailyTimetable1Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable1Params
WithDollarTop adds the dollarTop to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithHTTPClient ¶
func (o *THSRAPIDailyTimetable1Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable1Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable1Params) WithHealth(health *string) *THSRAPIDailyTimetable1Params
WithHealth adds the health to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithTimeout ¶
func (o *THSRAPIDailyTimetable1Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable1Params
WithTimeout adds the timeout to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WithTrainNo ¶
func (o *THSRAPIDailyTimetable1Params) WithTrainNo(trainNo string) *THSRAPIDailyTimetable1Params
WithTrainNo adds the trainNo to the t h s r Api daily timetable 1 params
func (*THSRAPIDailyTimetable1Params) WriteToRequest ¶
func (o *THSRAPIDailyTimetable1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTimetable1Reader ¶
type THSRAPIDailyTimetable1Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTimetable1Reader is a Reader for the THSRAPIDailyTimetable1 structure.
func (*THSRAPIDailyTimetable1Reader) ReadResponse ¶
func (o *THSRAPIDailyTimetable1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTimetable1Status299 ¶ added in v0.12.0
type THSRAPIDailyTimetable1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTimetable1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTimetable1Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTimetable1Status299() *THSRAPIDailyTimetable1Status299
NewTHSRAPIDailyTimetable1Status299 creates a THSRAPIDailyTimetable1Status299 with default headers values
func (*THSRAPIDailyTimetable1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable1Status299) Error() string
func (*THSRAPIDailyTimetable1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTimetable2NotModified ¶ added in v0.9.0
type THSRAPIDailyTimetable2NotModified struct { }
THSRAPIDailyTimetable2NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTimetable2NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTimetable2NotModified() *THSRAPIDailyTimetable2NotModified
NewTHSRAPIDailyTimetable2NotModified creates a THSRAPIDailyTimetable2NotModified with default headers values
func (*THSRAPIDailyTimetable2NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable2NotModified) Error() string
type THSRAPIDailyTimetable2OK ¶
type THSRAPIDailyTimetable2OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
THSRAPIDailyTimetable2OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTimetable2OK ¶
func NewTHSRAPIDailyTimetable2OK() *THSRAPIDailyTimetable2OK
NewTHSRAPIDailyTimetable2OK creates a THSRAPIDailyTimetable2OK with default headers values
func (*THSRAPIDailyTimetable2OK) Error ¶
func (o *THSRAPIDailyTimetable2OK) Error() string
func (*THSRAPIDailyTimetable2OK) GetPayload ¶
func (o *THSRAPIDailyTimetable2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
type THSRAPIDailyTimetable2Params ¶
type THSRAPIDailyTimetable2Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTimetable2Params contains all the parameters to send to the API endpoint
for the t h s r Api daily timetable 2 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTimetable2Params ¶
func NewTHSRAPIDailyTimetable2Params() *THSRAPIDailyTimetable2Params
NewTHSRAPIDailyTimetable2Params creates a new THSRAPIDailyTimetable2Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTimetable2ParamsWithContext ¶
func NewTHSRAPIDailyTimetable2ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable2Params
NewTHSRAPIDailyTimetable2ParamsWithContext creates a new THSRAPIDailyTimetable2Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTimetable2ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTimetable2ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable2Params
NewTHSRAPIDailyTimetable2ParamsWithHTTPClient creates a new THSRAPIDailyTimetable2Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTimetable2ParamsWithTimeout ¶
func NewTHSRAPIDailyTimetable2ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable2Params
NewTHSRAPIDailyTimetable2ParamsWithTimeout creates a new THSRAPIDailyTimetable2Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTimetable2Params) SetContext ¶
func (o *THSRAPIDailyTimetable2Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable2Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily timetable 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable2Params) SetDollarFilter ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDollarFormat ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDollarSelect ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDollarSkip ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetDollarTop ¶
func (o *THSRAPIDailyTimetable2Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetHTTPClient ¶
func (o *THSRAPIDailyTimetable2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable2Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetTimeout ¶
func (o *THSRAPIDailyTimetable2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) SetTrainDate ¶
func (o *THSRAPIDailyTimetable2Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithContext ¶
func (o *THSRAPIDailyTimetable2Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable2Params
WithContext adds the context to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable2Params) WithDefaults() *THSRAPIDailyTimetable2Params
WithDefaults hydrates default values in the t h s r Api daily timetable 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable2Params) WithDollarFilter ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable2Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDollarFormat ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable2Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable2Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDollarSelect ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable2Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDollarSkip ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable2Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithDollarTop ¶
func (o *THSRAPIDailyTimetable2Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable2Params
WithDollarTop adds the dollarTop to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithHTTPClient ¶
func (o *THSRAPIDailyTimetable2Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable2Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable2Params) WithHealth(health *string) *THSRAPIDailyTimetable2Params
WithHealth adds the health to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithTimeout ¶
func (o *THSRAPIDailyTimetable2Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable2Params
WithTimeout adds the timeout to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WithTrainDate ¶
func (o *THSRAPIDailyTimetable2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTimetable2Params
WithTrainDate adds the trainDate to the t h s r Api daily timetable 2 params
func (*THSRAPIDailyTimetable2Params) WriteToRequest ¶
func (o *THSRAPIDailyTimetable2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTimetable2Reader ¶
type THSRAPIDailyTimetable2Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTimetable2Reader is a Reader for the THSRAPIDailyTimetable2 structure.
func (*THSRAPIDailyTimetable2Reader) ReadResponse ¶
func (o *THSRAPIDailyTimetable2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTimetable2Status299 ¶ added in v0.12.0
type THSRAPIDailyTimetable2Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTimetable2Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTimetable2Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTimetable2Status299() *THSRAPIDailyTimetable2Status299
NewTHSRAPIDailyTimetable2Status299 creates a THSRAPIDailyTimetable2Status299 with default headers values
func (*THSRAPIDailyTimetable2Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable2Status299) Error() string
func (*THSRAPIDailyTimetable2Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTimetable3NotModified ¶ added in v0.9.0
type THSRAPIDailyTimetable3NotModified struct { }
THSRAPIDailyTimetable3NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTimetable3NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTimetable3NotModified() *THSRAPIDailyTimetable3NotModified
NewTHSRAPIDailyTimetable3NotModified creates a THSRAPIDailyTimetable3NotModified with default headers values
func (*THSRAPIDailyTimetable3NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable3NotModified) Error() string
type THSRAPIDailyTimetable3OK ¶
type THSRAPIDailyTimetable3OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
THSRAPIDailyTimetable3OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTimetable3OK ¶
func NewTHSRAPIDailyTimetable3OK() *THSRAPIDailyTimetable3OK
NewTHSRAPIDailyTimetable3OK creates a THSRAPIDailyTimetable3OK with default headers values
func (*THSRAPIDailyTimetable3OK) Error ¶
func (o *THSRAPIDailyTimetable3OK) Error() string
func (*THSRAPIDailyTimetable3OK) GetPayload ¶
func (o *THSRAPIDailyTimetable3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
type THSRAPIDailyTimetable3Params ¶
type THSRAPIDailyTimetable3Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* TrainNo. 欲查詢車次的代碼 */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTimetable3Params contains all the parameters to send to the API endpoint
for the t h s r Api daily timetable 3 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTimetable3Params ¶
func NewTHSRAPIDailyTimetable3Params() *THSRAPIDailyTimetable3Params
NewTHSRAPIDailyTimetable3Params creates a new THSRAPIDailyTimetable3Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTimetable3ParamsWithContext ¶
func NewTHSRAPIDailyTimetable3ParamsWithContext(ctx context.Context) *THSRAPIDailyTimetable3Params
NewTHSRAPIDailyTimetable3ParamsWithContext creates a new THSRAPIDailyTimetable3Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTimetable3ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTimetable3ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetable3Params
NewTHSRAPIDailyTimetable3ParamsWithHTTPClient creates a new THSRAPIDailyTimetable3Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTimetable3ParamsWithTimeout ¶
func NewTHSRAPIDailyTimetable3ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetable3Params
NewTHSRAPIDailyTimetable3ParamsWithTimeout creates a new THSRAPIDailyTimetable3Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTimetable3Params) SetContext ¶
func (o *THSRAPIDailyTimetable3Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable3Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily timetable 3 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable3Params) SetDollarFilter ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDollarFormat ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDollarSelect ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDollarSkip ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetDollarTop ¶
func (o *THSRAPIDailyTimetable3Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetHTTPClient ¶
func (o *THSRAPIDailyTimetable3Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable3Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetTimeout ¶
func (o *THSRAPIDailyTimetable3Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetTrainDate ¶
func (o *THSRAPIDailyTimetable3Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) SetTrainNo ¶
func (o *THSRAPIDailyTimetable3Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithContext ¶
func (o *THSRAPIDailyTimetable3Params) WithContext(ctx context.Context) *THSRAPIDailyTimetable3Params
WithContext adds the context to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetable3Params) WithDefaults() *THSRAPIDailyTimetable3Params
WithDefaults hydrates default values in the t h s r Api daily timetable 3 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetable3Params) WithDollarFilter ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetable3Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDollarFormat ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetable3Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetable3Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDollarSelect ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetable3Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDollarSkip ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetable3Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithDollarTop ¶
func (o *THSRAPIDailyTimetable3Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetable3Params
WithDollarTop adds the dollarTop to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithHTTPClient ¶
func (o *THSRAPIDailyTimetable3Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetable3Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable3Params) WithHealth(health *string) *THSRAPIDailyTimetable3Params
WithHealth adds the health to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithTimeout ¶
func (o *THSRAPIDailyTimetable3Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetable3Params
WithTimeout adds the timeout to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithTrainDate ¶
func (o *THSRAPIDailyTimetable3Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTimetable3Params
WithTrainDate adds the trainDate to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WithTrainNo ¶
func (o *THSRAPIDailyTimetable3Params) WithTrainNo(trainNo string) *THSRAPIDailyTimetable3Params
WithTrainNo adds the trainNo to the t h s r Api daily timetable 3 params
func (*THSRAPIDailyTimetable3Params) WriteToRequest ¶
func (o *THSRAPIDailyTimetable3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTimetable3Reader ¶
type THSRAPIDailyTimetable3Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTimetable3Reader is a Reader for the THSRAPIDailyTimetable3 structure.
func (*THSRAPIDailyTimetable3Reader) ReadResponse ¶
func (o *THSRAPIDailyTimetable3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTimetable3Status299 ¶ added in v0.12.0
type THSRAPIDailyTimetable3Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTimetable3Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTimetable3Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTimetable3Status299() *THSRAPIDailyTimetable3Status299
NewTHSRAPIDailyTimetable3Status299 creates a THSRAPIDailyTimetable3Status299 with default headers values
func (*THSRAPIDailyTimetable3Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable3Status299) Error() string
func (*THSRAPIDailyTimetable3Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTimetable3Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTimetableNotModified ¶ added in v0.9.0
type THSRAPIDailyTimetableNotModified struct { }
THSRAPIDailyTimetableNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTimetableNotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTimetableNotModified() *THSRAPIDailyTimetableNotModified
NewTHSRAPIDailyTimetableNotModified creates a THSRAPIDailyTimetableNotModified with default headers values
func (*THSRAPIDailyTimetableNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTimetableNotModified) Error() string
type THSRAPIDailyTimetableOK ¶
type THSRAPIDailyTimetableOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
}
THSRAPIDailyTimetableOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTimetableOK ¶
func NewTHSRAPIDailyTimetableOK() *THSRAPIDailyTimetableOK
NewTHSRAPIDailyTimetableOK creates a THSRAPIDailyTimetableOK with default headers values
func (*THSRAPIDailyTimetableOK) Error ¶
func (o *THSRAPIDailyTimetableOK) Error() string
func (*THSRAPIDailyTimetableOK) GetPayload ¶
func (o *THSRAPIDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTimetable
type THSRAPIDailyTimetableParams ¶
type THSRAPIDailyTimetableParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTimetableParams contains all the parameters to send to the API endpoint
for the t h s r Api daily timetable operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTimetableParams ¶
func NewTHSRAPIDailyTimetableParams() *THSRAPIDailyTimetableParams
NewTHSRAPIDailyTimetableParams creates a new THSRAPIDailyTimetableParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTimetableParamsWithContext ¶
func NewTHSRAPIDailyTimetableParamsWithContext(ctx context.Context) *THSRAPIDailyTimetableParams
NewTHSRAPIDailyTimetableParamsWithContext creates a new THSRAPIDailyTimetableParams object with the ability to set a context for a request.
func NewTHSRAPIDailyTimetableParamsWithHTTPClient ¶
func NewTHSRAPIDailyTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTimetableParams
NewTHSRAPIDailyTimetableParamsWithHTTPClient creates a new THSRAPIDailyTimetableParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTimetableParamsWithTimeout ¶
func NewTHSRAPIDailyTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTimetableParams
NewTHSRAPIDailyTimetableParamsWithTimeout creates a new THSRAPIDailyTimetableParams object with the ability to set a timeout on a request.
func (*THSRAPIDailyTimetableParams) SetContext ¶
func (o *THSRAPIDailyTimetableParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetableParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetableParams) SetDollarFilter ¶
func (o *THSRAPIDailyTimetableParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDollarFormat ¶
func (o *THSRAPIDailyTimetableParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDollarOrderby ¶
func (o *THSRAPIDailyTimetableParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDollarSelect ¶
func (o *THSRAPIDailyTimetableParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDollarSkip ¶
func (o *THSRAPIDailyTimetableParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetDollarTop ¶
func (o *THSRAPIDailyTimetableParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetHTTPClient ¶
func (o *THSRAPIDailyTimetableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetableParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) SetTimeout ¶
func (o *THSRAPIDailyTimetableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithContext ¶
func (o *THSRAPIDailyTimetableParams) WithContext(ctx context.Context) *THSRAPIDailyTimetableParams
WithContext adds the context to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTimetableParams) WithDefaults() *THSRAPIDailyTimetableParams
WithDefaults hydrates default values in the t h s r Api daily timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTimetableParams) WithDollarFilter ¶
func (o *THSRAPIDailyTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTimetableParams
WithDollarFilter adds the dollarFilter to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDollarFormat ¶
func (o *THSRAPIDailyTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIDailyTimetableParams
WithDollarFormat adds the dollarFormat to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDollarOrderby ¶
func (o *THSRAPIDailyTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTimetableParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDollarSelect ¶
func (o *THSRAPIDailyTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTimetableParams
WithDollarSelect adds the dollarSelect to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDollarSkip ¶
func (o *THSRAPIDailyTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTimetableParams
WithDollarSkip adds the dollarSkip to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithDollarTop ¶
func (o *THSRAPIDailyTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIDailyTimetableParams
WithDollarTop adds the dollarTop to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithHTTPClient ¶
func (o *THSRAPIDailyTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIDailyTimetableParams
WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTimetableParams) WithHealth(health *string) *THSRAPIDailyTimetableParams
WithHealth adds the health to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WithTimeout ¶
func (o *THSRAPIDailyTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIDailyTimetableParams
WithTimeout adds the timeout to the t h s r Api daily timetable params
func (*THSRAPIDailyTimetableParams) WriteToRequest ¶
func (o *THSRAPIDailyTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTimetableReader ¶
type THSRAPIDailyTimetableReader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTimetableReader is a Reader for the THSRAPIDailyTimetable structure.
func (*THSRAPIDailyTimetableReader) ReadResponse ¶
func (o *THSRAPIDailyTimetableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTimetableStatus299 ¶ added in v0.12.0
type THSRAPIDailyTimetableStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTimetableStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTimetableStatus299 ¶ added in v0.12.0
func NewTHSRAPIDailyTimetableStatus299() *THSRAPIDailyTimetableStatus299
NewTHSRAPIDailyTimetableStatus299 creates a THSRAPIDailyTimetableStatus299 with default headers values
func (*THSRAPIDailyTimetableStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTimetableStatus299) Error() string
func (*THSRAPIDailyTimetableStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTimetableStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTrainInfo1NotModified ¶ added in v0.9.0
type THSRAPIDailyTrainInfo1NotModified struct { }
THSRAPIDailyTrainInfo1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTrainInfo1NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTrainInfo1NotModified() *THSRAPIDailyTrainInfo1NotModified
NewTHSRAPIDailyTrainInfo1NotModified creates a THSRAPIDailyTrainInfo1NotModified with default headers values
func (*THSRAPIDailyTrainInfo1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo1NotModified) Error() string
type THSRAPIDailyTrainInfo1OK ¶
type THSRAPIDailyTrainInfo1OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
THSRAPIDailyTrainInfo1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTrainInfo1OK ¶
func NewTHSRAPIDailyTrainInfo1OK() *THSRAPIDailyTrainInfo1OK
NewTHSRAPIDailyTrainInfo1OK creates a THSRAPIDailyTrainInfo1OK with default headers values
func (*THSRAPIDailyTrainInfo1OK) Error ¶
func (o *THSRAPIDailyTrainInfo1OK) Error() string
func (*THSRAPIDailyTrainInfo1OK) GetPayload ¶
func (o *THSRAPIDailyTrainInfo1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
type THSRAPIDailyTrainInfo1Params ¶
type THSRAPIDailyTrainInfo1Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainNo. 欲查詢車次的代碼 */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTrainInfo1Params contains all the parameters to send to the API endpoint
for the t h s r Api daily train info 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTrainInfo1Params ¶
func NewTHSRAPIDailyTrainInfo1Params() *THSRAPIDailyTrainInfo1Params
NewTHSRAPIDailyTrainInfo1Params creates a new THSRAPIDailyTrainInfo1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTrainInfo1ParamsWithContext ¶
func NewTHSRAPIDailyTrainInfo1ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo1Params
NewTHSRAPIDailyTrainInfo1ParamsWithContext creates a new THSRAPIDailyTrainInfo1Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTrainInfo1ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTrainInfo1ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo1Params
NewTHSRAPIDailyTrainInfo1ParamsWithHTTPClient creates a new THSRAPIDailyTrainInfo1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTrainInfo1ParamsWithTimeout ¶
func NewTHSRAPIDailyTrainInfo1ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo1Params
NewTHSRAPIDailyTrainInfo1ParamsWithTimeout creates a new THSRAPIDailyTrainInfo1Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTrainInfo1Params) SetContext ¶
func (o *THSRAPIDailyTrainInfo1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily train info 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo1Params) SetDollarFilter ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDollarFormat ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDollarSelect ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDollarSkip ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetDollarTop ¶
func (o *THSRAPIDailyTrainInfo1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetHTTPClient ¶
func (o *THSRAPIDailyTrainInfo1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetTimeout ¶
func (o *THSRAPIDailyTrainInfo1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) SetTrainNo ¶
func (o *THSRAPIDailyTrainInfo1Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithContext ¶
func (o *THSRAPIDailyTrainInfo1Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo1Params
WithContext adds the context to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo1Params) WithDefaults() *THSRAPIDailyTrainInfo1Params
WithDefaults hydrates default values in the t h s r Api daily train info 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo1Params) WithDollarFilter ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo1Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDollarFormat ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo1Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDollarSelect ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo1Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDollarSkip ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo1Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithDollarTop ¶
func (o *THSRAPIDailyTrainInfo1Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo1Params
WithDollarTop adds the dollarTop to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithHTTPClient ¶
func (o *THSRAPIDailyTrainInfo1Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo1Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo1Params) WithHealth(health *string) *THSRAPIDailyTrainInfo1Params
WithHealth adds the health to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithTimeout ¶
func (o *THSRAPIDailyTrainInfo1Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo1Params
WithTimeout adds the timeout to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WithTrainNo ¶
func (o *THSRAPIDailyTrainInfo1Params) WithTrainNo(trainNo string) *THSRAPIDailyTrainInfo1Params
WithTrainNo adds the trainNo to the t h s r Api daily train info 1 params
func (*THSRAPIDailyTrainInfo1Params) WriteToRequest ¶
func (o *THSRAPIDailyTrainInfo1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTrainInfo1Reader ¶
type THSRAPIDailyTrainInfo1Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTrainInfo1Reader is a Reader for the THSRAPIDailyTrainInfo1 structure.
func (*THSRAPIDailyTrainInfo1Reader) ReadResponse ¶
func (o *THSRAPIDailyTrainInfo1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTrainInfo1Status299 ¶ added in v0.12.0
type THSRAPIDailyTrainInfo1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTrainInfo1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTrainInfo1Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTrainInfo1Status299() *THSRAPIDailyTrainInfo1Status299
NewTHSRAPIDailyTrainInfo1Status299 creates a THSRAPIDailyTrainInfo1Status299 with default headers values
func (*THSRAPIDailyTrainInfo1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo1Status299) Error() string
func (*THSRAPIDailyTrainInfo1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTrainInfo2NotModified ¶ added in v0.9.0
type THSRAPIDailyTrainInfo2NotModified struct { }
THSRAPIDailyTrainInfo2NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTrainInfo2NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTrainInfo2NotModified() *THSRAPIDailyTrainInfo2NotModified
NewTHSRAPIDailyTrainInfo2NotModified creates a THSRAPIDailyTrainInfo2NotModified with default headers values
func (*THSRAPIDailyTrainInfo2NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo2NotModified) Error() string
type THSRAPIDailyTrainInfo2OK ¶
type THSRAPIDailyTrainInfo2OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
THSRAPIDailyTrainInfo2OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTrainInfo2OK ¶
func NewTHSRAPIDailyTrainInfo2OK() *THSRAPIDailyTrainInfo2OK
NewTHSRAPIDailyTrainInfo2OK creates a THSRAPIDailyTrainInfo2OK with default headers values
func (*THSRAPIDailyTrainInfo2OK) Error ¶
func (o *THSRAPIDailyTrainInfo2OK) Error() string
func (*THSRAPIDailyTrainInfo2OK) GetPayload ¶
func (o *THSRAPIDailyTrainInfo2OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
type THSRAPIDailyTrainInfo2Params ¶
type THSRAPIDailyTrainInfo2Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTrainInfo2Params contains all the parameters to send to the API endpoint
for the t h s r Api daily train info 2 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTrainInfo2Params ¶
func NewTHSRAPIDailyTrainInfo2Params() *THSRAPIDailyTrainInfo2Params
NewTHSRAPIDailyTrainInfo2Params creates a new THSRAPIDailyTrainInfo2Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTrainInfo2ParamsWithContext ¶
func NewTHSRAPIDailyTrainInfo2ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo2Params
NewTHSRAPIDailyTrainInfo2ParamsWithContext creates a new THSRAPIDailyTrainInfo2Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTrainInfo2ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTrainInfo2ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo2Params
NewTHSRAPIDailyTrainInfo2ParamsWithHTTPClient creates a new THSRAPIDailyTrainInfo2Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTrainInfo2ParamsWithTimeout ¶
func NewTHSRAPIDailyTrainInfo2ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo2Params
NewTHSRAPIDailyTrainInfo2ParamsWithTimeout creates a new THSRAPIDailyTrainInfo2Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTrainInfo2Params) SetContext ¶
func (o *THSRAPIDailyTrainInfo2Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo2Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily train info 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo2Params) SetDollarFilter ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDollarFormat ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDollarSelect ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDollarSkip ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetDollarTop ¶
func (o *THSRAPIDailyTrainInfo2Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetHTTPClient ¶
func (o *THSRAPIDailyTrainInfo2Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo2Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetTimeout ¶
func (o *THSRAPIDailyTrainInfo2Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) SetTrainDate ¶
func (o *THSRAPIDailyTrainInfo2Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithContext ¶
func (o *THSRAPIDailyTrainInfo2Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo2Params
WithContext adds the context to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo2Params) WithDefaults() *THSRAPIDailyTrainInfo2Params
WithDefaults hydrates default values in the t h s r Api daily train info 2 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo2Params) WithDollarFilter ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo2Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDollarFormat ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo2Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo2Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDollarSelect ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo2Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDollarSkip ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo2Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithDollarTop ¶
func (o *THSRAPIDailyTrainInfo2Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo2Params
WithDollarTop adds the dollarTop to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithHTTPClient ¶
func (o *THSRAPIDailyTrainInfo2Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo2Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo2Params) WithHealth(health *string) *THSRAPIDailyTrainInfo2Params
WithHealth adds the health to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithTimeout ¶
func (o *THSRAPIDailyTrainInfo2Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo2Params
WithTimeout adds the timeout to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WithTrainDate ¶
func (o *THSRAPIDailyTrainInfo2Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTrainInfo2Params
WithTrainDate adds the trainDate to the t h s r Api daily train info 2 params
func (*THSRAPIDailyTrainInfo2Params) WriteToRequest ¶
func (o *THSRAPIDailyTrainInfo2Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTrainInfo2Reader ¶
type THSRAPIDailyTrainInfo2Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTrainInfo2Reader is a Reader for the THSRAPIDailyTrainInfo2 structure.
func (*THSRAPIDailyTrainInfo2Reader) ReadResponse ¶
func (o *THSRAPIDailyTrainInfo2Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTrainInfo2Status299 ¶ added in v0.12.0
type THSRAPIDailyTrainInfo2Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTrainInfo2Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTrainInfo2Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTrainInfo2Status299() *THSRAPIDailyTrainInfo2Status299
NewTHSRAPIDailyTrainInfo2Status299 creates a THSRAPIDailyTrainInfo2Status299 with default headers values
func (*THSRAPIDailyTrainInfo2Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo2Status299) Error() string
func (*THSRAPIDailyTrainInfo2Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo2Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTrainInfo3NotModified ¶ added in v0.9.0
type THSRAPIDailyTrainInfo3NotModified struct { }
THSRAPIDailyTrainInfo3NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTrainInfo3NotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTrainInfo3NotModified() *THSRAPIDailyTrainInfo3NotModified
NewTHSRAPIDailyTrainInfo3NotModified creates a THSRAPIDailyTrainInfo3NotModified with default headers values
func (*THSRAPIDailyTrainInfo3NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo3NotModified) Error() string
type THSRAPIDailyTrainInfo3OK ¶
type THSRAPIDailyTrainInfo3OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
THSRAPIDailyTrainInfo3OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTrainInfo3OK ¶
func NewTHSRAPIDailyTrainInfo3OK() *THSRAPIDailyTrainInfo3OK
NewTHSRAPIDailyTrainInfo3OK creates a THSRAPIDailyTrainInfo3OK with default headers values
func (*THSRAPIDailyTrainInfo3OK) Error ¶
func (o *THSRAPIDailyTrainInfo3OK) Error() string
func (*THSRAPIDailyTrainInfo3OK) GetPayload ¶
func (o *THSRAPIDailyTrainInfo3OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
type THSRAPIDailyTrainInfo3Params ¶
type THSRAPIDailyTrainInfo3Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainDate. 欲查詢車次的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* TrainNo. 欲查詢車次的代碼 */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTrainInfo3Params contains all the parameters to send to the API endpoint
for the t h s r Api daily train info 3 operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTrainInfo3Params ¶
func NewTHSRAPIDailyTrainInfo3Params() *THSRAPIDailyTrainInfo3Params
NewTHSRAPIDailyTrainInfo3Params creates a new THSRAPIDailyTrainInfo3Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTrainInfo3ParamsWithContext ¶
func NewTHSRAPIDailyTrainInfo3ParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfo3Params
NewTHSRAPIDailyTrainInfo3ParamsWithContext creates a new THSRAPIDailyTrainInfo3Params object with the ability to set a context for a request.
func NewTHSRAPIDailyTrainInfo3ParamsWithHTTPClient ¶
func NewTHSRAPIDailyTrainInfo3ParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo3Params
NewTHSRAPIDailyTrainInfo3ParamsWithHTTPClient creates a new THSRAPIDailyTrainInfo3Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTrainInfo3ParamsWithTimeout ¶
func NewTHSRAPIDailyTrainInfo3ParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo3Params
NewTHSRAPIDailyTrainInfo3ParamsWithTimeout creates a new THSRAPIDailyTrainInfo3Params object with the ability to set a timeout on a request.
func (*THSRAPIDailyTrainInfo3Params) SetContext ¶
func (o *THSRAPIDailyTrainInfo3Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo3Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily train info 3 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo3Params) SetDollarFilter ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDollarFormat ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDollarSelect ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDollarSkip ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetDollarTop ¶
func (o *THSRAPIDailyTrainInfo3Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetHTTPClient ¶
func (o *THSRAPIDailyTrainInfo3Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo3Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetTimeout ¶
func (o *THSRAPIDailyTrainInfo3Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetTrainDate ¶
func (o *THSRAPIDailyTrainInfo3Params) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) SetTrainNo ¶
func (o *THSRAPIDailyTrainInfo3Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithContext ¶
func (o *THSRAPIDailyTrainInfo3Params) WithContext(ctx context.Context) *THSRAPIDailyTrainInfo3Params
WithContext adds the context to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfo3Params) WithDefaults() *THSRAPIDailyTrainInfo3Params
WithDefaults hydrates default values in the t h s r Api daily train info 3 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfo3Params) WithDollarFilter ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfo3Params
WithDollarFilter adds the dollarFilter to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDollarFormat ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfo3Params
WithDollarFormat adds the dollarFormat to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDollarOrderby ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfo3Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDollarSelect ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfo3Params
WithDollarSelect adds the dollarSelect to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDollarSkip ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfo3Params
WithDollarSkip adds the dollarSkip to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithDollarTop ¶
func (o *THSRAPIDailyTrainInfo3Params) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfo3Params
WithDollarTop adds the dollarTop to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithHTTPClient ¶
func (o *THSRAPIDailyTrainInfo3Params) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfo3Params
WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo3Params) WithHealth(health *string) *THSRAPIDailyTrainInfo3Params
WithHealth adds the health to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithTimeout ¶
func (o *THSRAPIDailyTrainInfo3Params) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfo3Params
WithTimeout adds the timeout to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithTrainDate ¶
func (o *THSRAPIDailyTrainInfo3Params) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIDailyTrainInfo3Params
WithTrainDate adds the trainDate to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WithTrainNo ¶
func (o *THSRAPIDailyTrainInfo3Params) WithTrainNo(trainNo string) *THSRAPIDailyTrainInfo3Params
WithTrainNo adds the trainNo to the t h s r Api daily train info 3 params
func (*THSRAPIDailyTrainInfo3Params) WriteToRequest ¶
func (o *THSRAPIDailyTrainInfo3Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTrainInfo3Reader ¶
type THSRAPIDailyTrainInfo3Reader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTrainInfo3Reader is a Reader for the THSRAPIDailyTrainInfo3 structure.
func (*THSRAPIDailyTrainInfo3Reader) ReadResponse ¶
func (o *THSRAPIDailyTrainInfo3Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTrainInfo3Status299 ¶ added in v0.12.0
type THSRAPIDailyTrainInfo3Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTrainInfo3Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTrainInfo3Status299 ¶ added in v0.12.0
func NewTHSRAPIDailyTrainInfo3Status299() *THSRAPIDailyTrainInfo3Status299
NewTHSRAPIDailyTrainInfo3Status299 creates a THSRAPIDailyTrainInfo3Status299 with default headers values
func (*THSRAPIDailyTrainInfo3Status299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo3Status299) Error() string
func (*THSRAPIDailyTrainInfo3Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfo3Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIDailyTrainInfoNotModified ¶ added in v0.9.0
type THSRAPIDailyTrainInfoNotModified struct { }
THSRAPIDailyTrainInfoNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIDailyTrainInfoNotModified ¶ added in v0.9.0
func NewTHSRAPIDailyTrainInfoNotModified() *THSRAPIDailyTrainInfoNotModified
NewTHSRAPIDailyTrainInfoNotModified creates a THSRAPIDailyTrainInfoNotModified with default headers values
func (*THSRAPIDailyTrainInfoNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfoNotModified) Error() string
type THSRAPIDailyTrainInfoOK ¶
type THSRAPIDailyTrainInfoOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
}
THSRAPIDailyTrainInfoOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIDailyTrainInfoOK ¶
func NewTHSRAPIDailyTrainInfoOK() *THSRAPIDailyTrainInfoOK
NewTHSRAPIDailyTrainInfoOK creates a THSRAPIDailyTrainInfoOK with default headers values
func (*THSRAPIDailyTrainInfoOK) Error ¶
func (o *THSRAPIDailyTrainInfoOK) Error() string
func (*THSRAPIDailyTrainInfoOK) GetPayload ¶
func (o *THSRAPIDailyTrainInfoOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailDailyTrainInfo
type THSRAPIDailyTrainInfoParams ¶
type THSRAPIDailyTrainInfoParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIDailyTrainInfoParams contains all the parameters to send to the API endpoint
for the t h s r Api daily train info operation. Typically these are written to a http.Request.
func NewTHSRAPIDailyTrainInfoParams ¶
func NewTHSRAPIDailyTrainInfoParams() *THSRAPIDailyTrainInfoParams
NewTHSRAPIDailyTrainInfoParams creates a new THSRAPIDailyTrainInfoParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIDailyTrainInfoParamsWithContext ¶
func NewTHSRAPIDailyTrainInfoParamsWithContext(ctx context.Context) *THSRAPIDailyTrainInfoParams
NewTHSRAPIDailyTrainInfoParamsWithContext creates a new THSRAPIDailyTrainInfoParams object with the ability to set a context for a request.
func NewTHSRAPIDailyTrainInfoParamsWithHTTPClient ¶
func NewTHSRAPIDailyTrainInfoParamsWithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfoParams
NewTHSRAPIDailyTrainInfoParamsWithHTTPClient creates a new THSRAPIDailyTrainInfoParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIDailyTrainInfoParamsWithTimeout ¶
func NewTHSRAPIDailyTrainInfoParamsWithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfoParams
NewTHSRAPIDailyTrainInfoParamsWithTimeout creates a new THSRAPIDailyTrainInfoParams object with the ability to set a timeout on a request.
func (*THSRAPIDailyTrainInfoParams) SetContext ¶
func (o *THSRAPIDailyTrainInfoParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfoParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api daily train info params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfoParams) SetDollarFilter ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDollarFormat ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDollarOrderby ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDollarSelect ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDollarSkip ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetDollarTop ¶
func (o *THSRAPIDailyTrainInfoParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetHTTPClient ¶
func (o *THSRAPIDailyTrainInfoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfoParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) SetTimeout ¶
func (o *THSRAPIDailyTrainInfoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithContext ¶
func (o *THSRAPIDailyTrainInfoParams) WithContext(ctx context.Context) *THSRAPIDailyTrainInfoParams
WithContext adds the context to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIDailyTrainInfoParams) WithDefaults() *THSRAPIDailyTrainInfoParams
WithDefaults hydrates default values in the t h s r Api daily train info params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIDailyTrainInfoParams) WithDollarFilter ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarFilter(dollarFilter *string) *THSRAPIDailyTrainInfoParams
WithDollarFilter adds the dollarFilter to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDollarFormat ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarFormat(dollarFormat string) *THSRAPIDailyTrainInfoParams
WithDollarFormat adds the dollarFormat to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDollarOrderby ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIDailyTrainInfoParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDollarSelect ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarSelect(dollarSelect *string) *THSRAPIDailyTrainInfoParams
WithDollarSelect adds the dollarSelect to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDollarSkip ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarSkip(dollarSkip *string) *THSRAPIDailyTrainInfoParams
WithDollarSkip adds the dollarSkip to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithDollarTop ¶
func (o *THSRAPIDailyTrainInfoParams) WithDollarTop(dollarTop *int64) *THSRAPIDailyTrainInfoParams
WithDollarTop adds the dollarTop to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithHTTPClient ¶
func (o *THSRAPIDailyTrainInfoParams) WithHTTPClient(client *http.Client) *THSRAPIDailyTrainInfoParams
WithHTTPClient adds the HTTPClient to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfoParams) WithHealth(health *string) *THSRAPIDailyTrainInfoParams
WithHealth adds the health to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WithTimeout ¶
func (o *THSRAPIDailyTrainInfoParams) WithTimeout(timeout time.Duration) *THSRAPIDailyTrainInfoParams
WithTimeout adds the timeout to the t h s r Api daily train info params
func (*THSRAPIDailyTrainInfoParams) WriteToRequest ¶
func (o *THSRAPIDailyTrainInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIDailyTrainInfoReader ¶
type THSRAPIDailyTrainInfoReader struct {
// contains filtered or unexported fields
}
THSRAPIDailyTrainInfoReader is a Reader for the THSRAPIDailyTrainInfo structure.
func (*THSRAPIDailyTrainInfoReader) ReadResponse ¶
func (o *THSRAPIDailyTrainInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIDailyTrainInfoStatus299 ¶ added in v0.12.0
type THSRAPIDailyTrainInfoStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIDailyTrainInfoStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIDailyTrainInfoStatus299 ¶ added in v0.12.0
func NewTHSRAPIDailyTrainInfoStatus299() *THSRAPIDailyTrainInfoStatus299
NewTHSRAPIDailyTrainInfoStatus299 creates a THSRAPIDailyTrainInfoStatus299 with default headers values
func (*THSRAPIDailyTrainInfoStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfoStatus299) Error() string
func (*THSRAPIDailyTrainInfoStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIDailyTrainInfoStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIGeneralTimetable1NotModified ¶ added in v0.9.0
type THSRAPIGeneralTimetable1NotModified struct { }
THSRAPIGeneralTimetable1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIGeneralTimetable1NotModified ¶ added in v0.9.0
func NewTHSRAPIGeneralTimetable1NotModified() *THSRAPIGeneralTimetable1NotModified
NewTHSRAPIGeneralTimetable1NotModified creates a THSRAPIGeneralTimetable1NotModified with default headers values
func (*THSRAPIGeneralTimetable1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetable1NotModified) Error() string
type THSRAPIGeneralTimetable1OK ¶
type THSRAPIGeneralTimetable1OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
}
THSRAPIGeneralTimetable1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIGeneralTimetable1OK ¶
func NewTHSRAPIGeneralTimetable1OK() *THSRAPIGeneralTimetable1OK
NewTHSRAPIGeneralTimetable1OK creates a THSRAPIGeneralTimetable1OK with default headers values
func (*THSRAPIGeneralTimetable1OK) Error ¶
func (o *THSRAPIGeneralTimetable1OK) Error() string
func (*THSRAPIGeneralTimetable1OK) GetPayload ¶
func (o *THSRAPIGeneralTimetable1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
type THSRAPIGeneralTimetable1Params ¶
type THSRAPIGeneralTimetable1Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* TrainNo. 欲查詢車次的代碼 */ TrainNo string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIGeneralTimetable1Params contains all the parameters to send to the API endpoint
for the t h s r Api general timetable 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIGeneralTimetable1Params ¶
func NewTHSRAPIGeneralTimetable1Params() *THSRAPIGeneralTimetable1Params
NewTHSRAPIGeneralTimetable1Params creates a new THSRAPIGeneralTimetable1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIGeneralTimetable1ParamsWithContext ¶
func NewTHSRAPIGeneralTimetable1ParamsWithContext(ctx context.Context) *THSRAPIGeneralTimetable1Params
NewTHSRAPIGeneralTimetable1ParamsWithContext creates a new THSRAPIGeneralTimetable1Params object with the ability to set a context for a request.
func NewTHSRAPIGeneralTimetable1ParamsWithHTTPClient ¶
func NewTHSRAPIGeneralTimetable1ParamsWithHTTPClient(client *http.Client) *THSRAPIGeneralTimetable1Params
NewTHSRAPIGeneralTimetable1ParamsWithHTTPClient creates a new THSRAPIGeneralTimetable1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIGeneralTimetable1ParamsWithTimeout ¶
func NewTHSRAPIGeneralTimetable1ParamsWithTimeout(timeout time.Duration) *THSRAPIGeneralTimetable1Params
NewTHSRAPIGeneralTimetable1ParamsWithTimeout creates a new THSRAPIGeneralTimetable1Params object with the ability to set a timeout on a request.
func (*THSRAPIGeneralTimetable1Params) SetContext ¶
func (o *THSRAPIGeneralTimetable1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetable1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api general timetable 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIGeneralTimetable1Params) SetDollarFilter ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDollarFormat ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDollarOrderby ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDollarSelect ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDollarSkip ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetDollarTop ¶
func (o *THSRAPIGeneralTimetable1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetHTTPClient ¶
func (o *THSRAPIGeneralTimetable1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetable1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetTimeout ¶
func (o *THSRAPIGeneralTimetable1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) SetTrainNo ¶
func (o *THSRAPIGeneralTimetable1Params) SetTrainNo(trainNo string)
SetTrainNo adds the trainNo to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithContext ¶
func (o *THSRAPIGeneralTimetable1Params) WithContext(ctx context.Context) *THSRAPIGeneralTimetable1Params
WithContext adds the context to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetable1Params) WithDefaults() *THSRAPIGeneralTimetable1Params
WithDefaults hydrates default values in the t h s r Api general timetable 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIGeneralTimetable1Params) WithDollarFilter ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarFilter(dollarFilter *string) *THSRAPIGeneralTimetable1Params
WithDollarFilter adds the dollarFilter to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDollarFormat ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarFormat(dollarFormat string) *THSRAPIGeneralTimetable1Params
WithDollarFormat adds the dollarFormat to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDollarOrderby ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIGeneralTimetable1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDollarSelect ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarSelect(dollarSelect *string) *THSRAPIGeneralTimetable1Params
WithDollarSelect adds the dollarSelect to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDollarSkip ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarSkip(dollarSkip *string) *THSRAPIGeneralTimetable1Params
WithDollarSkip adds the dollarSkip to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithDollarTop ¶
func (o *THSRAPIGeneralTimetable1Params) WithDollarTop(dollarTop *int64) *THSRAPIGeneralTimetable1Params
WithDollarTop adds the dollarTop to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithHTTPClient ¶
func (o *THSRAPIGeneralTimetable1Params) WithHTTPClient(client *http.Client) *THSRAPIGeneralTimetable1Params
WithHTTPClient adds the HTTPClient to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetable1Params) WithHealth(health *string) *THSRAPIGeneralTimetable1Params
WithHealth adds the health to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithTimeout ¶
func (o *THSRAPIGeneralTimetable1Params) WithTimeout(timeout time.Duration) *THSRAPIGeneralTimetable1Params
WithTimeout adds the timeout to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WithTrainNo ¶
func (o *THSRAPIGeneralTimetable1Params) WithTrainNo(trainNo string) *THSRAPIGeneralTimetable1Params
WithTrainNo adds the trainNo to the t h s r Api general timetable 1 params
func (*THSRAPIGeneralTimetable1Params) WriteToRequest ¶
func (o *THSRAPIGeneralTimetable1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIGeneralTimetable1Reader ¶
type THSRAPIGeneralTimetable1Reader struct {
// contains filtered or unexported fields
}
THSRAPIGeneralTimetable1Reader is a Reader for the THSRAPIGeneralTimetable1 structure.
func (*THSRAPIGeneralTimetable1Reader) ReadResponse ¶
func (o *THSRAPIGeneralTimetable1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIGeneralTimetable1Status299 ¶ added in v0.12.0
type THSRAPIGeneralTimetable1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIGeneralTimetable1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIGeneralTimetable1Status299 ¶ added in v0.12.0
func NewTHSRAPIGeneralTimetable1Status299() *THSRAPIGeneralTimetable1Status299
NewTHSRAPIGeneralTimetable1Status299 creates a THSRAPIGeneralTimetable1Status299 with default headers values
func (*THSRAPIGeneralTimetable1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetable1Status299) Error() string
func (*THSRAPIGeneralTimetable1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetable1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIGeneralTimetableNotModified ¶ added in v0.9.0
type THSRAPIGeneralTimetableNotModified struct { }
THSRAPIGeneralTimetableNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIGeneralTimetableNotModified ¶ added in v0.9.0
func NewTHSRAPIGeneralTimetableNotModified() *THSRAPIGeneralTimetableNotModified
NewTHSRAPIGeneralTimetableNotModified creates a THSRAPIGeneralTimetableNotModified with default headers values
func (*THSRAPIGeneralTimetableNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetableNotModified) Error() string
type THSRAPIGeneralTimetableOK ¶
type THSRAPIGeneralTimetableOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
}
THSRAPIGeneralTimetableOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIGeneralTimetableOK ¶
func NewTHSRAPIGeneralTimetableOK() *THSRAPIGeneralTimetableOK
NewTHSRAPIGeneralTimetableOK creates a THSRAPIGeneralTimetableOK with default headers values
func (*THSRAPIGeneralTimetableOK) Error ¶
func (o *THSRAPIGeneralTimetableOK) Error() string
func (*THSRAPIGeneralTimetableOK) GetPayload ¶
func (o *THSRAPIGeneralTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailGeneralTimetable
type THSRAPIGeneralTimetableParams ¶
type THSRAPIGeneralTimetableParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIGeneralTimetableParams contains all the parameters to send to the API endpoint
for the t h s r Api general timetable operation. Typically these are written to a http.Request.
func NewTHSRAPIGeneralTimetableParams ¶
func NewTHSRAPIGeneralTimetableParams() *THSRAPIGeneralTimetableParams
NewTHSRAPIGeneralTimetableParams creates a new THSRAPIGeneralTimetableParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIGeneralTimetableParamsWithContext ¶
func NewTHSRAPIGeneralTimetableParamsWithContext(ctx context.Context) *THSRAPIGeneralTimetableParams
NewTHSRAPIGeneralTimetableParamsWithContext creates a new THSRAPIGeneralTimetableParams object with the ability to set a context for a request.
func NewTHSRAPIGeneralTimetableParamsWithHTTPClient ¶
func NewTHSRAPIGeneralTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIGeneralTimetableParams
NewTHSRAPIGeneralTimetableParamsWithHTTPClient creates a new THSRAPIGeneralTimetableParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIGeneralTimetableParamsWithTimeout ¶
func NewTHSRAPIGeneralTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIGeneralTimetableParams
NewTHSRAPIGeneralTimetableParamsWithTimeout creates a new THSRAPIGeneralTimetableParams object with the ability to set a timeout on a request.
func (*THSRAPIGeneralTimetableParams) SetContext ¶
func (o *THSRAPIGeneralTimetableParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetableParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api general timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIGeneralTimetableParams) SetDollarFilter ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDollarFormat ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDollarOrderby ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDollarSelect ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDollarSkip ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetDollarTop ¶
func (o *THSRAPIGeneralTimetableParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetHTTPClient ¶
func (o *THSRAPIGeneralTimetableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetableParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) SetTimeout ¶
func (o *THSRAPIGeneralTimetableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithContext ¶
func (o *THSRAPIGeneralTimetableParams) WithContext(ctx context.Context) *THSRAPIGeneralTimetableParams
WithContext adds the context to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIGeneralTimetableParams) WithDefaults() *THSRAPIGeneralTimetableParams
WithDefaults hydrates default values in the t h s r Api general timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIGeneralTimetableParams) WithDollarFilter ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIGeneralTimetableParams
WithDollarFilter adds the dollarFilter to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDollarFormat ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIGeneralTimetableParams
WithDollarFormat adds the dollarFormat to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDollarOrderby ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIGeneralTimetableParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDollarSelect ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIGeneralTimetableParams
WithDollarSelect adds the dollarSelect to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDollarSkip ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIGeneralTimetableParams
WithDollarSkip adds the dollarSkip to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithDollarTop ¶
func (o *THSRAPIGeneralTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIGeneralTimetableParams
WithDollarTop adds the dollarTop to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithHTTPClient ¶
func (o *THSRAPIGeneralTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIGeneralTimetableParams
WithHTTPClient adds the HTTPClient to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetableParams) WithHealth(health *string) *THSRAPIGeneralTimetableParams
WithHealth adds the health to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WithTimeout ¶
func (o *THSRAPIGeneralTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIGeneralTimetableParams
WithTimeout adds the timeout to the t h s r Api general timetable params
func (*THSRAPIGeneralTimetableParams) WriteToRequest ¶
func (o *THSRAPIGeneralTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIGeneralTimetableReader ¶
type THSRAPIGeneralTimetableReader struct {
// contains filtered or unexported fields
}
THSRAPIGeneralTimetableReader is a Reader for the THSRAPIGeneralTimetable structure.
func (*THSRAPIGeneralTimetableReader) ReadResponse ¶
func (o *THSRAPIGeneralTimetableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIGeneralTimetableStatus299 ¶ added in v0.12.0
type THSRAPIGeneralTimetableStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIGeneralTimetableStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIGeneralTimetableStatus299 ¶ added in v0.12.0
func NewTHSRAPIGeneralTimetableStatus299() *THSRAPIGeneralTimetableStatus299
NewTHSRAPIGeneralTimetableStatus299 creates a THSRAPIGeneralTimetableStatus299 with default headers values
func (*THSRAPIGeneralTimetableStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetableStatus299) Error() string
func (*THSRAPIGeneralTimetableStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIGeneralTimetableStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPINewsNotModified ¶ added in v0.9.0
type THSRAPINewsNotModified struct { }
THSRAPINewsNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPINewsNotModified ¶ added in v0.9.0
func NewTHSRAPINewsNotModified() *THSRAPINewsNotModified
NewTHSRAPINewsNotModified creates a THSRAPINewsNotModified with default headers values
func (*THSRAPINewsNotModified) Error ¶ added in v0.9.0
func (o *THSRAPINewsNotModified) Error() string
type THSRAPINewsOK ¶
type THSRAPINewsOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRNews
}
THSRAPINewsOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPINewsOK ¶
func NewTHSRAPINewsOK() *THSRAPINewsOK
NewTHSRAPINewsOK creates a THSRAPINewsOK with default headers values
func (*THSRAPINewsOK) Error ¶
func (o *THSRAPINewsOK) Error() string
func (*THSRAPINewsOK) GetPayload ¶
func (o *THSRAPINewsOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRNews
type THSRAPINewsParams ¶
type THSRAPINewsParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPINewsParams contains all the parameters to send to the API endpoint
for the t h s r Api news operation. Typically these are written to a http.Request.
func NewTHSRAPINewsParams ¶
func NewTHSRAPINewsParams() *THSRAPINewsParams
NewTHSRAPINewsParams creates a new THSRAPINewsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPINewsParamsWithContext ¶
func NewTHSRAPINewsParamsWithContext(ctx context.Context) *THSRAPINewsParams
NewTHSRAPINewsParamsWithContext creates a new THSRAPINewsParams object with the ability to set a context for a request.
func NewTHSRAPINewsParamsWithHTTPClient ¶
func NewTHSRAPINewsParamsWithHTTPClient(client *http.Client) *THSRAPINewsParams
NewTHSRAPINewsParamsWithHTTPClient creates a new THSRAPINewsParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPINewsParamsWithTimeout ¶
func NewTHSRAPINewsParamsWithTimeout(timeout time.Duration) *THSRAPINewsParams
NewTHSRAPINewsParamsWithTimeout creates a new THSRAPINewsParams object with the ability to set a timeout on a request.
func (*THSRAPINewsParams) SetContext ¶
func (o *THSRAPINewsParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api news params
func (*THSRAPINewsParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPINewsParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api news params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPINewsParams) SetDollarFilter ¶
func (o *THSRAPINewsParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api news params
func (*THSRAPINewsParams) SetDollarFormat ¶
func (o *THSRAPINewsParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api news params
func (*THSRAPINewsParams) SetDollarOrderby ¶
func (o *THSRAPINewsParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api news params
func (*THSRAPINewsParams) SetDollarSelect ¶
func (o *THSRAPINewsParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api news params
func (*THSRAPINewsParams) SetDollarSkip ¶
func (o *THSRAPINewsParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api news params
func (*THSRAPINewsParams) SetDollarTop ¶
func (o *THSRAPINewsParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api news params
func (*THSRAPINewsParams) SetHTTPClient ¶
func (o *THSRAPINewsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api news params
func (*THSRAPINewsParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPINewsParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api news params
func (*THSRAPINewsParams) SetTimeout ¶
func (o *THSRAPINewsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api news params
func (*THSRAPINewsParams) WithContext ¶
func (o *THSRAPINewsParams) WithContext(ctx context.Context) *THSRAPINewsParams
WithContext adds the context to the t h s r Api news params
func (*THSRAPINewsParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPINewsParams) WithDefaults() *THSRAPINewsParams
WithDefaults hydrates default values in the t h s r Api news params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPINewsParams) WithDollarFilter ¶
func (o *THSRAPINewsParams) WithDollarFilter(dollarFilter *string) *THSRAPINewsParams
WithDollarFilter adds the dollarFilter to the t h s r Api news params
func (*THSRAPINewsParams) WithDollarFormat ¶
func (o *THSRAPINewsParams) WithDollarFormat(dollarFormat string) *THSRAPINewsParams
WithDollarFormat adds the dollarFormat to the t h s r Api news params
func (*THSRAPINewsParams) WithDollarOrderby ¶
func (o *THSRAPINewsParams) WithDollarOrderby(dollarOrderby *string) *THSRAPINewsParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api news params
func (*THSRAPINewsParams) WithDollarSelect ¶
func (o *THSRAPINewsParams) WithDollarSelect(dollarSelect *string) *THSRAPINewsParams
WithDollarSelect adds the dollarSelect to the t h s r Api news params
func (*THSRAPINewsParams) WithDollarSkip ¶
func (o *THSRAPINewsParams) WithDollarSkip(dollarSkip *string) *THSRAPINewsParams
WithDollarSkip adds the dollarSkip to the t h s r Api news params
func (*THSRAPINewsParams) WithDollarTop ¶
func (o *THSRAPINewsParams) WithDollarTop(dollarTop *int64) *THSRAPINewsParams
WithDollarTop adds the dollarTop to the t h s r Api news params
func (*THSRAPINewsParams) WithHTTPClient ¶
func (o *THSRAPINewsParams) WithHTTPClient(client *http.Client) *THSRAPINewsParams
WithHTTPClient adds the HTTPClient to the t h s r Api news params
func (*THSRAPINewsParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPINewsParams) WithHealth(health *string) *THSRAPINewsParams
WithHealth adds the health to the t h s r Api news params
func (*THSRAPINewsParams) WithTimeout ¶
func (o *THSRAPINewsParams) WithTimeout(timeout time.Duration) *THSRAPINewsParams
WithTimeout adds the timeout to the t h s r Api news params
func (*THSRAPINewsParams) WriteToRequest ¶
func (o *THSRAPINewsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPINewsReader ¶
type THSRAPINewsReader struct {
// contains filtered or unexported fields
}
THSRAPINewsReader is a Reader for the THSRAPINews structure.
func (*THSRAPINewsReader) ReadResponse ¶
func (o *THSRAPINewsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPINewsStatus299 ¶ added in v0.12.0
type THSRAPINewsStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPINewsStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPINewsStatus299 ¶ added in v0.12.0
func NewTHSRAPINewsStatus299() *THSRAPINewsStatus299
NewTHSRAPINewsStatus299 creates a THSRAPINewsStatus299 with default headers values
func (*THSRAPINewsStatus299) Error ¶ added in v0.12.0
func (o *THSRAPINewsStatus299) Error() string
func (*THSRAPINewsStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPINewsStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIODDailyTimetableNotModified ¶ added in v0.9.0
type THSRAPIODDailyTimetableNotModified struct { }
THSRAPIODDailyTimetableNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIODDailyTimetableNotModified ¶ added in v0.9.0
func NewTHSRAPIODDailyTimetableNotModified() *THSRAPIODDailyTimetableNotModified
NewTHSRAPIODDailyTimetableNotModified creates a THSRAPIODDailyTimetableNotModified with default headers values
func (*THSRAPIODDailyTimetableNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIODDailyTimetableNotModified) Error() string
type THSRAPIODDailyTimetableOK ¶
type THSRAPIODDailyTimetableOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable
}
THSRAPIODDailyTimetableOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIODDailyTimetableOK ¶
func NewTHSRAPIODDailyTimetableOK() *THSRAPIODDailyTimetableOK
NewTHSRAPIODDailyTimetableOK creates a THSRAPIODDailyTimetableOK with default headers values
func (*THSRAPIODDailyTimetableOK) Error ¶
func (o *THSRAPIODDailyTimetableOK) Error() string
func (*THSRAPIODDailyTimetableOK) GetPayload ¶
func (o *THSRAPIODDailyTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODDailyTimetable
type THSRAPIODDailyTimetableParams ¶
type THSRAPIODDailyTimetableParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* DestinationStationID. 迄點車站代碼 */ DestinationStationID string /* OriginStationID. 起點車站代碼 */ OriginStationID string /* TrainDate. 欲查詢的日期(格式: yyyy-MM-dd) Format: date-time */ TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIODDailyTimetableParams contains all the parameters to send to the API endpoint
for the t h s r Api o d daily timetable operation. Typically these are written to a http.Request.
func NewTHSRAPIODDailyTimetableParams ¶
func NewTHSRAPIODDailyTimetableParams() *THSRAPIODDailyTimetableParams
NewTHSRAPIODDailyTimetableParams creates a new THSRAPIODDailyTimetableParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIODDailyTimetableParamsWithContext ¶
func NewTHSRAPIODDailyTimetableParamsWithContext(ctx context.Context) *THSRAPIODDailyTimetableParams
NewTHSRAPIODDailyTimetableParamsWithContext creates a new THSRAPIODDailyTimetableParams object with the ability to set a context for a request.
func NewTHSRAPIODDailyTimetableParamsWithHTTPClient ¶
func NewTHSRAPIODDailyTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIODDailyTimetableParams
NewTHSRAPIODDailyTimetableParamsWithHTTPClient creates a new THSRAPIODDailyTimetableParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIODDailyTimetableParamsWithTimeout ¶
func NewTHSRAPIODDailyTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIODDailyTimetableParams
NewTHSRAPIODDailyTimetableParamsWithTimeout creates a new THSRAPIODDailyTimetableParams object with the ability to set a timeout on a request.
func (*THSRAPIODDailyTimetableParams) SetContext ¶
func (o *THSRAPIODDailyTimetableParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIODDailyTimetableParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api o d daily timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODDailyTimetableParams) SetDestinationStationID ¶
func (o *THSRAPIODDailyTimetableParams) SetDestinationStationID(destinationStationID string)
SetDestinationStationID adds the destinationStationId to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarFilter ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarFormat ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarOrderby ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarSelect ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarSkip ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetDollarTop ¶
func (o *THSRAPIODDailyTimetableParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetHTTPClient ¶
func (o *THSRAPIODDailyTimetableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIODDailyTimetableParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetOriginStationID ¶
func (o *THSRAPIODDailyTimetableParams) SetOriginStationID(originStationID string)
SetOriginStationID adds the originStationId to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetTimeout ¶
func (o *THSRAPIODDailyTimetableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) SetTrainDate ¶
func (o *THSRAPIODDailyTimetableParams) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithContext ¶
func (o *THSRAPIODDailyTimetableParams) WithContext(ctx context.Context) *THSRAPIODDailyTimetableParams
WithContext adds the context to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIODDailyTimetableParams) WithDefaults() *THSRAPIODDailyTimetableParams
WithDefaults hydrates default values in the t h s r Api o d daily timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODDailyTimetableParams) WithDestinationStationID ¶
func (o *THSRAPIODDailyTimetableParams) WithDestinationStationID(destinationStationID string) *THSRAPIODDailyTimetableParams
WithDestinationStationID adds the destinationStationID to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarFilter ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIODDailyTimetableParams
WithDollarFilter adds the dollarFilter to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarFormat ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIODDailyTimetableParams
WithDollarFormat adds the dollarFormat to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarOrderby ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIODDailyTimetableParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarSelect ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIODDailyTimetableParams
WithDollarSelect adds the dollarSelect to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarSkip ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIODDailyTimetableParams
WithDollarSkip adds the dollarSkip to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithDollarTop ¶
func (o *THSRAPIODDailyTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIODDailyTimetableParams
WithDollarTop adds the dollarTop to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithHTTPClient ¶
func (o *THSRAPIODDailyTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIODDailyTimetableParams
WithHTTPClient adds the HTTPClient to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIODDailyTimetableParams) WithHealth(health *string) *THSRAPIODDailyTimetableParams
WithHealth adds the health to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithOriginStationID ¶
func (o *THSRAPIODDailyTimetableParams) WithOriginStationID(originStationID string) *THSRAPIODDailyTimetableParams
WithOriginStationID adds the originStationID to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithTimeout ¶
func (o *THSRAPIODDailyTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIODDailyTimetableParams
WithTimeout adds the timeout to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WithTrainDate ¶
func (o *THSRAPIODDailyTimetableParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIODDailyTimetableParams
WithTrainDate adds the trainDate to the t h s r Api o d daily timetable params
func (*THSRAPIODDailyTimetableParams) WriteToRequest ¶
func (o *THSRAPIODDailyTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIODDailyTimetableReader ¶
type THSRAPIODDailyTimetableReader struct {
// contains filtered or unexported fields
}
THSRAPIODDailyTimetableReader is a Reader for the THSRAPIODDailyTimetable structure.
func (*THSRAPIODDailyTimetableReader) ReadResponse ¶
func (o *THSRAPIODDailyTimetableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIODDailyTimetableStatus299 ¶ added in v0.12.0
type THSRAPIODDailyTimetableStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIODDailyTimetableStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIODDailyTimetableStatus299 ¶ added in v0.12.0
func NewTHSRAPIODDailyTimetableStatus299() *THSRAPIODDailyTimetableStatus299
NewTHSRAPIODDailyTimetableStatus299 creates a THSRAPIODDailyTimetableStatus299 with default headers values
func (*THSRAPIODDailyTimetableStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIODDailyTimetableStatus299) Error() string
func (*THSRAPIODDailyTimetableStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIODDailyTimetableStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIODFare1NotModified ¶ added in v0.9.0
type THSRAPIODFare1NotModified struct { }
THSRAPIODFare1NotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIODFare1NotModified ¶ added in v0.9.0
func NewTHSRAPIODFare1NotModified() *THSRAPIODFare1NotModified
NewTHSRAPIODFare1NotModified creates a THSRAPIODFare1NotModified with default headers values
func (*THSRAPIODFare1NotModified) Error ¶ added in v0.9.0
func (o *THSRAPIODFare1NotModified) Error() string
type THSRAPIODFare1OK ¶
type THSRAPIODFare1OK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
}
THSRAPIODFare1OK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIODFare1OK ¶
func NewTHSRAPIODFare1OK() *THSRAPIODFare1OK
NewTHSRAPIODFare1OK creates a THSRAPIODFare1OK with default headers values
func (*THSRAPIODFare1OK) Error ¶
func (o *THSRAPIODFare1OK) Error() string
func (*THSRAPIODFare1OK) GetPayload ¶
func (o *THSRAPIODFare1OK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
type THSRAPIODFare1Params ¶
type THSRAPIODFare1Params struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* DestinationStationID. 迄點車站代碼 */ DestinationStationID string /* OriginStationID. 起點車站代碼 */ OriginStationID string /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIODFare1Params contains all the parameters to send to the API endpoint
for the t h s r Api o d fare 1 operation. Typically these are written to a http.Request.
func NewTHSRAPIODFare1Params ¶
func NewTHSRAPIODFare1Params() *THSRAPIODFare1Params
NewTHSRAPIODFare1Params creates a new THSRAPIODFare1Params object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIODFare1ParamsWithContext ¶
func NewTHSRAPIODFare1ParamsWithContext(ctx context.Context) *THSRAPIODFare1Params
NewTHSRAPIODFare1ParamsWithContext creates a new THSRAPIODFare1Params object with the ability to set a context for a request.
func NewTHSRAPIODFare1ParamsWithHTTPClient ¶
func NewTHSRAPIODFare1ParamsWithHTTPClient(client *http.Client) *THSRAPIODFare1Params
NewTHSRAPIODFare1ParamsWithHTTPClient creates a new THSRAPIODFare1Params object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIODFare1ParamsWithTimeout ¶
func NewTHSRAPIODFare1ParamsWithTimeout(timeout time.Duration) *THSRAPIODFare1Params
NewTHSRAPIODFare1ParamsWithTimeout creates a new THSRAPIODFare1Params object with the ability to set a timeout on a request.
func (*THSRAPIODFare1Params) SetContext ¶
func (o *THSRAPIODFare1Params) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIODFare1Params) SetDefaults()
SetDefaults hydrates default values in the t h s r Api o d fare 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODFare1Params) SetDestinationStationID ¶
func (o *THSRAPIODFare1Params) SetDestinationStationID(destinationStationID string)
SetDestinationStationID adds the destinationStationId to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarFilter ¶
func (o *THSRAPIODFare1Params) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarFormat ¶
func (o *THSRAPIODFare1Params) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarOrderby ¶
func (o *THSRAPIODFare1Params) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarSelect ¶
func (o *THSRAPIODFare1Params) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarSkip ¶
func (o *THSRAPIODFare1Params) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetDollarTop ¶
func (o *THSRAPIODFare1Params) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetHTTPClient ¶
func (o *THSRAPIODFare1Params) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetHealth ¶ added in v0.12.0
func (o *THSRAPIODFare1Params) SetHealth(health *string)
SetHealth adds the health to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetOriginStationID ¶
func (o *THSRAPIODFare1Params) SetOriginStationID(originStationID string)
SetOriginStationID adds the originStationId to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) SetTimeout ¶
func (o *THSRAPIODFare1Params) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithContext ¶
func (o *THSRAPIODFare1Params) WithContext(ctx context.Context) *THSRAPIODFare1Params
WithContext adds the context to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIODFare1Params) WithDefaults() *THSRAPIODFare1Params
WithDefaults hydrates default values in the t h s r Api o d fare 1 params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODFare1Params) WithDestinationStationID ¶
func (o *THSRAPIODFare1Params) WithDestinationStationID(destinationStationID string) *THSRAPIODFare1Params
WithDestinationStationID adds the destinationStationID to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarFilter ¶
func (o *THSRAPIODFare1Params) WithDollarFilter(dollarFilter *string) *THSRAPIODFare1Params
WithDollarFilter adds the dollarFilter to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarFormat ¶
func (o *THSRAPIODFare1Params) WithDollarFormat(dollarFormat string) *THSRAPIODFare1Params
WithDollarFormat adds the dollarFormat to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarOrderby ¶
func (o *THSRAPIODFare1Params) WithDollarOrderby(dollarOrderby *string) *THSRAPIODFare1Params
WithDollarOrderby adds the dollarOrderby to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarSelect ¶
func (o *THSRAPIODFare1Params) WithDollarSelect(dollarSelect *string) *THSRAPIODFare1Params
WithDollarSelect adds the dollarSelect to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarSkip ¶
func (o *THSRAPIODFare1Params) WithDollarSkip(dollarSkip *string) *THSRAPIODFare1Params
WithDollarSkip adds the dollarSkip to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithDollarTop ¶
func (o *THSRAPIODFare1Params) WithDollarTop(dollarTop *int64) *THSRAPIODFare1Params
WithDollarTop adds the dollarTop to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithHTTPClient ¶
func (o *THSRAPIODFare1Params) WithHTTPClient(client *http.Client) *THSRAPIODFare1Params
WithHTTPClient adds the HTTPClient to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithHealth ¶ added in v0.12.0
func (o *THSRAPIODFare1Params) WithHealth(health *string) *THSRAPIODFare1Params
WithHealth adds the health to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithOriginStationID ¶
func (o *THSRAPIODFare1Params) WithOriginStationID(originStationID string) *THSRAPIODFare1Params
WithOriginStationID adds the originStationID to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WithTimeout ¶
func (o *THSRAPIODFare1Params) WithTimeout(timeout time.Duration) *THSRAPIODFare1Params
WithTimeout adds the timeout to the t h s r Api o d fare 1 params
func (*THSRAPIODFare1Params) WriteToRequest ¶
func (o *THSRAPIODFare1Params) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIODFare1Reader ¶
type THSRAPIODFare1Reader struct {
// contains filtered or unexported fields
}
THSRAPIODFare1Reader is a Reader for the THSRAPIODFare1 structure.
func (*THSRAPIODFare1Reader) ReadResponse ¶
func (o *THSRAPIODFare1Reader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIODFare1Status299 ¶ added in v0.12.0
type THSRAPIODFare1Status299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIODFare1Status299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIODFare1Status299 ¶ added in v0.12.0
func NewTHSRAPIODFare1Status299() *THSRAPIODFare1Status299
NewTHSRAPIODFare1Status299 creates a THSRAPIODFare1Status299 with default headers values
func (*THSRAPIODFare1Status299) Error ¶ added in v0.12.0
func (o *THSRAPIODFare1Status299) Error() string
func (*THSRAPIODFare1Status299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIODFare1Status299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIODFareNotModified ¶ added in v0.9.0
type THSRAPIODFareNotModified struct { }
THSRAPIODFareNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIODFareNotModified ¶ added in v0.9.0
func NewTHSRAPIODFareNotModified() *THSRAPIODFareNotModified
NewTHSRAPIODFareNotModified creates a THSRAPIODFareNotModified with default headers values
func (*THSRAPIODFareNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIODFareNotModified) Error() string
type THSRAPIODFareOK ¶
type THSRAPIODFareOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
}
THSRAPIODFareOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIODFareOK ¶
func NewTHSRAPIODFareOK() *THSRAPIODFareOK
NewTHSRAPIODFareOK creates a THSRAPIODFareOK with default headers values
func (*THSRAPIODFareOK) Error ¶
func (o *THSRAPIODFareOK) Error() string
func (*THSRAPIODFareOK) GetPayload ¶
func (o *THSRAPIODFareOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailODFare
type THSRAPIODFareParams ¶
type THSRAPIODFareParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIODFareParams contains all the parameters to send to the API endpoint
for the t h s r Api o d fare operation. Typically these are written to a http.Request.
func NewTHSRAPIODFareParams ¶
func NewTHSRAPIODFareParams() *THSRAPIODFareParams
NewTHSRAPIODFareParams creates a new THSRAPIODFareParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIODFareParamsWithContext ¶
func NewTHSRAPIODFareParamsWithContext(ctx context.Context) *THSRAPIODFareParams
NewTHSRAPIODFareParamsWithContext creates a new THSRAPIODFareParams object with the ability to set a context for a request.
func NewTHSRAPIODFareParamsWithHTTPClient ¶
func NewTHSRAPIODFareParamsWithHTTPClient(client *http.Client) *THSRAPIODFareParams
NewTHSRAPIODFareParamsWithHTTPClient creates a new THSRAPIODFareParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIODFareParamsWithTimeout ¶
func NewTHSRAPIODFareParamsWithTimeout(timeout time.Duration) *THSRAPIODFareParams
NewTHSRAPIODFareParamsWithTimeout creates a new THSRAPIODFareParams object with the ability to set a timeout on a request.
func (*THSRAPIODFareParams) SetContext ¶
func (o *THSRAPIODFareParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIODFareParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api o d fare params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODFareParams) SetDollarFilter ¶
func (o *THSRAPIODFareParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDollarFormat ¶
func (o *THSRAPIODFareParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDollarOrderby ¶
func (o *THSRAPIODFareParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDollarSelect ¶
func (o *THSRAPIODFareParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDollarSkip ¶
func (o *THSRAPIODFareParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetDollarTop ¶
func (o *THSRAPIODFareParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetHTTPClient ¶
func (o *THSRAPIODFareParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIODFareParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api o d fare params
func (*THSRAPIODFareParams) SetTimeout ¶
func (o *THSRAPIODFareParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithContext ¶
func (o *THSRAPIODFareParams) WithContext(ctx context.Context) *THSRAPIODFareParams
WithContext adds the context to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIODFareParams) WithDefaults() *THSRAPIODFareParams
WithDefaults hydrates default values in the t h s r Api o d fare params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIODFareParams) WithDollarFilter ¶
func (o *THSRAPIODFareParams) WithDollarFilter(dollarFilter *string) *THSRAPIODFareParams
WithDollarFilter adds the dollarFilter to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDollarFormat ¶
func (o *THSRAPIODFareParams) WithDollarFormat(dollarFormat string) *THSRAPIODFareParams
WithDollarFormat adds the dollarFormat to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDollarOrderby ¶
func (o *THSRAPIODFareParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIODFareParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDollarSelect ¶
func (o *THSRAPIODFareParams) WithDollarSelect(dollarSelect *string) *THSRAPIODFareParams
WithDollarSelect adds the dollarSelect to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDollarSkip ¶
func (o *THSRAPIODFareParams) WithDollarSkip(dollarSkip *string) *THSRAPIODFareParams
WithDollarSkip adds the dollarSkip to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithDollarTop ¶
func (o *THSRAPIODFareParams) WithDollarTop(dollarTop *int64) *THSRAPIODFareParams
WithDollarTop adds the dollarTop to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithHTTPClient ¶
func (o *THSRAPIODFareParams) WithHTTPClient(client *http.Client) *THSRAPIODFareParams
WithHTTPClient adds the HTTPClient to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIODFareParams) WithHealth(health *string) *THSRAPIODFareParams
WithHealth adds the health to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WithTimeout ¶
func (o *THSRAPIODFareParams) WithTimeout(timeout time.Duration) *THSRAPIODFareParams
WithTimeout adds the timeout to the t h s r Api o d fare params
func (*THSRAPIODFareParams) WriteToRequest ¶
func (o *THSRAPIODFareParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIODFareReader ¶
type THSRAPIODFareReader struct {
// contains filtered or unexported fields
}
THSRAPIODFareReader is a Reader for the THSRAPIODFare structure.
func (*THSRAPIODFareReader) ReadResponse ¶
func (o *THSRAPIODFareReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIODFareStatus299 ¶ added in v0.12.0
type THSRAPIODFareStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIODFareStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIODFareStatus299 ¶ added in v0.12.0
func NewTHSRAPIODFareStatus299() *THSRAPIODFareStatus299
NewTHSRAPIODFareStatus299 creates a THSRAPIODFareStatus299 with default headers values
func (*THSRAPIODFareStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIODFareStatus299) Error() string
func (*THSRAPIODFareStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIODFareStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIShapeNotModified ¶ added in v0.9.0
type THSRAPIShapeNotModified struct { }
THSRAPIShapeNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIShapeNotModified ¶ added in v0.9.0
func NewTHSRAPIShapeNotModified() *THSRAPIShapeNotModified
NewTHSRAPIShapeNotModified creates a THSRAPIShapeNotModified with default headers values
func (*THSRAPIShapeNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIShapeNotModified) Error() string
type THSRAPIShapeOK ¶
type THSRAPIShapeOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRTHSRShape
}
THSRAPIShapeOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIShapeOK ¶
func NewTHSRAPIShapeOK() *THSRAPIShapeOK
NewTHSRAPIShapeOK creates a THSRAPIShapeOK with default headers values
func (*THSRAPIShapeOK) Error ¶
func (o *THSRAPIShapeOK) Error() string
func (*THSRAPIShapeOK) GetPayload ¶
func (o *THSRAPIShapeOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRTHSRShape
type THSRAPIShapeParams ¶
type THSRAPIShapeParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIShapeParams contains all the parameters to send to the API endpoint
for the t h s r Api shape operation. Typically these are written to a http.Request.
func NewTHSRAPIShapeParams ¶
func NewTHSRAPIShapeParams() *THSRAPIShapeParams
NewTHSRAPIShapeParams creates a new THSRAPIShapeParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIShapeParamsWithContext ¶
func NewTHSRAPIShapeParamsWithContext(ctx context.Context) *THSRAPIShapeParams
NewTHSRAPIShapeParamsWithContext creates a new THSRAPIShapeParams object with the ability to set a context for a request.
func NewTHSRAPIShapeParamsWithHTTPClient ¶
func NewTHSRAPIShapeParamsWithHTTPClient(client *http.Client) *THSRAPIShapeParams
NewTHSRAPIShapeParamsWithHTTPClient creates a new THSRAPIShapeParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIShapeParamsWithTimeout ¶
func NewTHSRAPIShapeParamsWithTimeout(timeout time.Duration) *THSRAPIShapeParams
NewTHSRAPIShapeParamsWithTimeout creates a new THSRAPIShapeParams object with the ability to set a timeout on a request.
func (*THSRAPIShapeParams) SetContext ¶
func (o *THSRAPIShapeParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIShapeParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api shape params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIShapeParams) SetDollarFilter ¶
func (o *THSRAPIShapeParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDollarFormat ¶
func (o *THSRAPIShapeParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDollarOrderby ¶
func (o *THSRAPIShapeParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDollarSelect ¶
func (o *THSRAPIShapeParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDollarSkip ¶
func (o *THSRAPIShapeParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api shape params
func (*THSRAPIShapeParams) SetDollarTop ¶
func (o *THSRAPIShapeParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api shape params
func (*THSRAPIShapeParams) SetHTTPClient ¶
func (o *THSRAPIShapeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api shape params
func (*THSRAPIShapeParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIShapeParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api shape params
func (*THSRAPIShapeParams) SetTimeout ¶
func (o *THSRAPIShapeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api shape params
func (*THSRAPIShapeParams) WithContext ¶
func (o *THSRAPIShapeParams) WithContext(ctx context.Context) *THSRAPIShapeParams
WithContext adds the context to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIShapeParams) WithDefaults() *THSRAPIShapeParams
WithDefaults hydrates default values in the t h s r Api shape params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIShapeParams) WithDollarFilter ¶
func (o *THSRAPIShapeParams) WithDollarFilter(dollarFilter *string) *THSRAPIShapeParams
WithDollarFilter adds the dollarFilter to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDollarFormat ¶
func (o *THSRAPIShapeParams) WithDollarFormat(dollarFormat string) *THSRAPIShapeParams
WithDollarFormat adds the dollarFormat to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDollarOrderby ¶
func (o *THSRAPIShapeParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIShapeParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDollarSelect ¶
func (o *THSRAPIShapeParams) WithDollarSelect(dollarSelect *string) *THSRAPIShapeParams
WithDollarSelect adds the dollarSelect to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDollarSkip ¶
func (o *THSRAPIShapeParams) WithDollarSkip(dollarSkip *string) *THSRAPIShapeParams
WithDollarSkip adds the dollarSkip to the t h s r Api shape params
func (*THSRAPIShapeParams) WithDollarTop ¶
func (o *THSRAPIShapeParams) WithDollarTop(dollarTop *int64) *THSRAPIShapeParams
WithDollarTop adds the dollarTop to the t h s r Api shape params
func (*THSRAPIShapeParams) WithHTTPClient ¶
func (o *THSRAPIShapeParams) WithHTTPClient(client *http.Client) *THSRAPIShapeParams
WithHTTPClient adds the HTTPClient to the t h s r Api shape params
func (*THSRAPIShapeParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIShapeParams) WithHealth(health *string) *THSRAPIShapeParams
WithHealth adds the health to the t h s r Api shape params
func (*THSRAPIShapeParams) WithTimeout ¶
func (o *THSRAPIShapeParams) WithTimeout(timeout time.Duration) *THSRAPIShapeParams
WithTimeout adds the timeout to the t h s r Api shape params
func (*THSRAPIShapeParams) WriteToRequest ¶
func (o *THSRAPIShapeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIShapeReader ¶
type THSRAPIShapeReader struct {
// contains filtered or unexported fields
}
THSRAPIShapeReader is a Reader for the THSRAPIShape structure.
func (*THSRAPIShapeReader) ReadResponse ¶
func (o *THSRAPIShapeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIShapeStatus299 ¶ added in v0.12.0
type THSRAPIShapeStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIShapeStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIShapeStatus299 ¶ added in v0.12.0
func NewTHSRAPIShapeStatus299() *THSRAPIShapeStatus299
NewTHSRAPIShapeStatus299 creates a THSRAPIShapeStatus299 with default headers values
func (*THSRAPIShapeStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIShapeStatus299) Error() string
func (*THSRAPIShapeStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIShapeStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIStationExitNotModified ¶ added in v0.9.0
type THSRAPIStationExitNotModified struct { }
THSRAPIStationExitNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIStationExitNotModified ¶ added in v0.9.0
func NewTHSRAPIStationExitNotModified() *THSRAPIStationExitNotModified
NewTHSRAPIStationExitNotModified creates a THSRAPIStationExitNotModified with default headers values
func (*THSRAPIStationExitNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIStationExitNotModified) Error() string
type THSRAPIStationExitOK ¶
type THSRAPIStationExitOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRStationExit
}
THSRAPIStationExitOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIStationExitOK ¶
func NewTHSRAPIStationExitOK() *THSRAPIStationExitOK
NewTHSRAPIStationExitOK creates a THSRAPIStationExitOK with default headers values
func (*THSRAPIStationExitOK) Error ¶
func (o *THSRAPIStationExitOK) Error() string
func (*THSRAPIStationExitOK) GetPayload ¶
func (o *THSRAPIStationExitOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRStationExit
type THSRAPIStationExitParams ¶
type THSRAPIStationExitParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarSpatialFilter. 空間過濾,語法為nearby({Lat},{Lon},{DistanceInMeters}),例如nearby(25.047675, 121.517055, 100) */ DollarSpatialFilter *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIStationExitParams contains all the parameters to send to the API endpoint
for the t h s r Api station exit operation. Typically these are written to a http.Request.
func NewTHSRAPIStationExitParams ¶
func NewTHSRAPIStationExitParams() *THSRAPIStationExitParams
NewTHSRAPIStationExitParams creates a new THSRAPIStationExitParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIStationExitParamsWithContext ¶
func NewTHSRAPIStationExitParamsWithContext(ctx context.Context) *THSRAPIStationExitParams
NewTHSRAPIStationExitParamsWithContext creates a new THSRAPIStationExitParams object with the ability to set a context for a request.
func NewTHSRAPIStationExitParamsWithHTTPClient ¶
func NewTHSRAPIStationExitParamsWithHTTPClient(client *http.Client) *THSRAPIStationExitParams
NewTHSRAPIStationExitParamsWithHTTPClient creates a new THSRAPIStationExitParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIStationExitParamsWithTimeout ¶
func NewTHSRAPIStationExitParamsWithTimeout(timeout time.Duration) *THSRAPIStationExitParams
NewTHSRAPIStationExitParamsWithTimeout creates a new THSRAPIStationExitParams object with the ability to set a timeout on a request.
func (*THSRAPIStationExitParams) SetContext ¶
func (o *THSRAPIStationExitParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIStationExitParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api station exit params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationExitParams) SetDollarFilter ¶
func (o *THSRAPIStationExitParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarFormat ¶
func (o *THSRAPIStationExitParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarOrderby ¶
func (o *THSRAPIStationExitParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarSelect ¶
func (o *THSRAPIStationExitParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarSkip ¶
func (o *THSRAPIStationExitParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarSpatialFilter ¶
func (o *THSRAPIStationExitParams) SetDollarSpatialFilter(dollarSpatialFilter *string)
SetDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetDollarTop ¶
func (o *THSRAPIStationExitParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetHTTPClient ¶
func (o *THSRAPIStationExitParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIStationExitParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api station exit params
func (*THSRAPIStationExitParams) SetTimeout ¶
func (o *THSRAPIStationExitParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithContext ¶
func (o *THSRAPIStationExitParams) WithContext(ctx context.Context) *THSRAPIStationExitParams
WithContext adds the context to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIStationExitParams) WithDefaults() *THSRAPIStationExitParams
WithDefaults hydrates default values in the t h s r Api station exit params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationExitParams) WithDollarFilter ¶
func (o *THSRAPIStationExitParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationExitParams
WithDollarFilter adds the dollarFilter to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarFormat ¶
func (o *THSRAPIStationExitParams) WithDollarFormat(dollarFormat string) *THSRAPIStationExitParams
WithDollarFormat adds the dollarFormat to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarOrderby ¶
func (o *THSRAPIStationExitParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationExitParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarSelect ¶
func (o *THSRAPIStationExitParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationExitParams
WithDollarSelect adds the dollarSelect to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarSkip ¶
func (o *THSRAPIStationExitParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationExitParams
WithDollarSkip adds the dollarSkip to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarSpatialFilter ¶
func (o *THSRAPIStationExitParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *THSRAPIStationExitParams
WithDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithDollarTop ¶
func (o *THSRAPIStationExitParams) WithDollarTop(dollarTop *int64) *THSRAPIStationExitParams
WithDollarTop adds the dollarTop to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithHTTPClient ¶
func (o *THSRAPIStationExitParams) WithHTTPClient(client *http.Client) *THSRAPIStationExitParams
WithHTTPClient adds the HTTPClient to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIStationExitParams) WithHealth(health *string) *THSRAPIStationExitParams
WithHealth adds the health to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WithTimeout ¶
func (o *THSRAPIStationExitParams) WithTimeout(timeout time.Duration) *THSRAPIStationExitParams
WithTimeout adds the timeout to the t h s r Api station exit params
func (*THSRAPIStationExitParams) WriteToRequest ¶
func (o *THSRAPIStationExitParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIStationExitReader ¶
type THSRAPIStationExitReader struct {
// contains filtered or unexported fields
}
THSRAPIStationExitReader is a Reader for the THSRAPIStationExit structure.
func (*THSRAPIStationExitReader) ReadResponse ¶
func (o *THSRAPIStationExitReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIStationExitStatus299 ¶ added in v0.12.0
type THSRAPIStationExitStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIStationExitStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIStationExitStatus299 ¶ added in v0.12.0
func NewTHSRAPIStationExitStatus299() *THSRAPIStationExitStatus299
NewTHSRAPIStationExitStatus299 creates a THSRAPIStationExitStatus299 with default headers values
func (*THSRAPIStationExitStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIStationExitStatus299) Error() string
func (*THSRAPIStationExitStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIStationExitStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIStationNotModified ¶ added in v0.9.0
type THSRAPIStationNotModified struct { }
THSRAPIStationNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIStationNotModified ¶ added in v0.9.0
func NewTHSRAPIStationNotModified() *THSRAPIStationNotModified
NewTHSRAPIStationNotModified creates a THSRAPIStationNotModified with default headers values
func (*THSRAPIStationNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIStationNotModified) Error() string
type THSRAPIStationOK ¶
type THSRAPIStationOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailStation
}
THSRAPIStationOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIStationOK ¶
func NewTHSRAPIStationOK() *THSRAPIStationOK
NewTHSRAPIStationOK creates a THSRAPIStationOK with default headers values
func (*THSRAPIStationOK) Error ¶
func (o *THSRAPIStationOK) Error() string
func (*THSRAPIStationOK) GetPayload ¶
func (o *THSRAPIStationOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailStation
type THSRAPIStationParams ¶
type THSRAPIStationParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarSpatialFilter. 空間過濾,語法為nearby({Lat},{Lon},{DistanceInMeters}),例如nearby(25.047675, 121.517055, 100) */ DollarSpatialFilter *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIStationParams contains all the parameters to send to the API endpoint
for the t h s r Api station operation. Typically these are written to a http.Request.
func NewTHSRAPIStationParams ¶
func NewTHSRAPIStationParams() *THSRAPIStationParams
NewTHSRAPIStationParams creates a new THSRAPIStationParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIStationParamsWithContext ¶
func NewTHSRAPIStationParamsWithContext(ctx context.Context) *THSRAPIStationParams
NewTHSRAPIStationParamsWithContext creates a new THSRAPIStationParams object with the ability to set a context for a request.
func NewTHSRAPIStationParamsWithHTTPClient ¶
func NewTHSRAPIStationParamsWithHTTPClient(client *http.Client) *THSRAPIStationParams
NewTHSRAPIStationParamsWithHTTPClient creates a new THSRAPIStationParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIStationParamsWithTimeout ¶
func NewTHSRAPIStationParamsWithTimeout(timeout time.Duration) *THSRAPIStationParams
NewTHSRAPIStationParamsWithTimeout creates a new THSRAPIStationParams object with the ability to set a timeout on a request.
func (*THSRAPIStationParams) SetContext ¶
func (o *THSRAPIStationParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api station params
func (*THSRAPIStationParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIStationParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api station params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationParams) SetDollarFilter ¶
func (o *THSRAPIStationParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarFormat ¶
func (o *THSRAPIStationParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarOrderby ¶
func (o *THSRAPIStationParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarSelect ¶
func (o *THSRAPIStationParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarSkip ¶
func (o *THSRAPIStationParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarSpatialFilter ¶
func (o *THSRAPIStationParams) SetDollarSpatialFilter(dollarSpatialFilter *string)
SetDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station params
func (*THSRAPIStationParams) SetDollarTop ¶
func (o *THSRAPIStationParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api station params
func (*THSRAPIStationParams) SetHTTPClient ¶
func (o *THSRAPIStationParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api station params
func (*THSRAPIStationParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIStationParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api station params
func (*THSRAPIStationParams) SetTimeout ¶
func (o *THSRAPIStationParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api station params
func (*THSRAPIStationParams) WithContext ¶
func (o *THSRAPIStationParams) WithContext(ctx context.Context) *THSRAPIStationParams
WithContext adds the context to the t h s r Api station params
func (*THSRAPIStationParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIStationParams) WithDefaults() *THSRAPIStationParams
WithDefaults hydrates default values in the t h s r Api station params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationParams) WithDollarFilter ¶
func (o *THSRAPIStationParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationParams
WithDollarFilter adds the dollarFilter to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarFormat ¶
func (o *THSRAPIStationParams) WithDollarFormat(dollarFormat string) *THSRAPIStationParams
WithDollarFormat adds the dollarFormat to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarOrderby ¶
func (o *THSRAPIStationParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarSelect ¶
func (o *THSRAPIStationParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationParams
WithDollarSelect adds the dollarSelect to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarSkip ¶
func (o *THSRAPIStationParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationParams
WithDollarSkip adds the dollarSkip to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarSpatialFilter ¶
func (o *THSRAPIStationParams) WithDollarSpatialFilter(dollarSpatialFilter *string) *THSRAPIStationParams
WithDollarSpatialFilter adds the dollarSpatialFilter to the t h s r Api station params
func (*THSRAPIStationParams) WithDollarTop ¶
func (o *THSRAPIStationParams) WithDollarTop(dollarTop *int64) *THSRAPIStationParams
WithDollarTop adds the dollarTop to the t h s r Api station params
func (*THSRAPIStationParams) WithHTTPClient ¶
func (o *THSRAPIStationParams) WithHTTPClient(client *http.Client) *THSRAPIStationParams
WithHTTPClient adds the HTTPClient to the t h s r Api station params
func (*THSRAPIStationParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIStationParams) WithHealth(health *string) *THSRAPIStationParams
WithHealth adds the health to the t h s r Api station params
func (*THSRAPIStationParams) WithTimeout ¶
func (o *THSRAPIStationParams) WithTimeout(timeout time.Duration) *THSRAPIStationParams
WithTimeout adds the timeout to the t h s r Api station params
func (*THSRAPIStationParams) WriteToRequest ¶
func (o *THSRAPIStationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIStationReader ¶
type THSRAPIStationReader struct {
// contains filtered or unexported fields
}
THSRAPIStationReader is a Reader for the THSRAPIStation structure.
func (*THSRAPIStationReader) ReadResponse ¶
func (o *THSRAPIStationReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIStationStatus299 ¶ added in v0.12.0
type THSRAPIStationStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIStationStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIStationStatus299 ¶ added in v0.12.0
func NewTHSRAPIStationStatus299() *THSRAPIStationStatus299
NewTHSRAPIStationStatus299 creates a THSRAPIStationStatus299 with default headers values
func (*THSRAPIStationStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIStationStatus299) Error() string
func (*THSRAPIStationStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIStationStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
type THSRAPIStationTimetableNotModified ¶ added in v0.9.0
type THSRAPIStationTimetableNotModified struct { }
THSRAPIStationTimetableNotModified describes a response with status code 304, with default header values.
服務端會在Response加上Last-Modified header,表示最近的更新時間。客戶端能利用此時間,於Request加上If-Modified-Since header,若沒有更新,服務端會回應304 StatusCode且空值Content
func NewTHSRAPIStationTimetableNotModified ¶ added in v0.9.0
func NewTHSRAPIStationTimetableNotModified() *THSRAPIStationTimetableNotModified
NewTHSRAPIStationTimetableNotModified creates a THSRAPIStationTimetableNotModified with default headers values
func (*THSRAPIStationTimetableNotModified) Error ¶ added in v0.9.0
func (o *THSRAPIStationTimetableNotModified) Error() string
type THSRAPIStationTimetableOK ¶
type THSRAPIStationTimetableOK struct {
Payload []*models.PTXServiceDTORailSpecificationV2THSRRailStationTimetable
}
THSRAPIStationTimetableOK describes a response with status code 200, with default header values.
Success
func NewTHSRAPIStationTimetableOK ¶
func NewTHSRAPIStationTimetableOK() *THSRAPIStationTimetableOK
NewTHSRAPIStationTimetableOK creates a THSRAPIStationTimetableOK with default headers values
func (*THSRAPIStationTimetableOK) Error ¶
func (o *THSRAPIStationTimetableOK) Error() string
func (*THSRAPIStationTimetableOK) GetPayload ¶
func (o *THSRAPIStationTimetableOK) GetPayload() []*models.PTXServiceDTORailSpecificationV2THSRRailStationTimetable
type THSRAPIStationTimetableParams ¶
type THSRAPIStationTimetableParams struct { /* DollarFilter. 過濾 */ DollarFilter *string /* DollarFormat. 指定來源格式 */ DollarFormat string /* DollarOrderby. 排序 */ DollarOrderby *string /* DollarSelect. 挑選 */ DollarSelect *string /* DollarSkip. 跳過前幾筆 */ DollarSkip *string /* DollarTop. 取前幾筆 Default: 30 */ DollarTop *int64 // StationID. StationID string // TrainDate. // // Format: date-time TrainDate strfmt.DateTime /* Health. 加入參數'?health=true'即可查詢此API服務的健康狀態 */ Health *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
THSRAPIStationTimetableParams contains all the parameters to send to the API endpoint
for the t h s r Api station timetable operation. Typically these are written to a http.Request.
func NewTHSRAPIStationTimetableParams ¶
func NewTHSRAPIStationTimetableParams() *THSRAPIStationTimetableParams
NewTHSRAPIStationTimetableParams creates a new THSRAPIStationTimetableParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewTHSRAPIStationTimetableParamsWithContext ¶
func NewTHSRAPIStationTimetableParamsWithContext(ctx context.Context) *THSRAPIStationTimetableParams
NewTHSRAPIStationTimetableParamsWithContext creates a new THSRAPIStationTimetableParams object with the ability to set a context for a request.
func NewTHSRAPIStationTimetableParamsWithHTTPClient ¶
func NewTHSRAPIStationTimetableParamsWithHTTPClient(client *http.Client) *THSRAPIStationTimetableParams
NewTHSRAPIStationTimetableParamsWithHTTPClient creates a new THSRAPIStationTimetableParams object with the ability to set a custom HTTPClient for a request.
func NewTHSRAPIStationTimetableParamsWithTimeout ¶
func NewTHSRAPIStationTimetableParamsWithTimeout(timeout time.Duration) *THSRAPIStationTimetableParams
NewTHSRAPIStationTimetableParamsWithTimeout creates a new THSRAPIStationTimetableParams object with the ability to set a timeout on a request.
func (*THSRAPIStationTimetableParams) SetContext ¶
func (o *THSRAPIStationTimetableParams) SetContext(ctx context.Context)
SetContext adds the context to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDefaults ¶ added in v0.9.0
func (o *THSRAPIStationTimetableParams) SetDefaults()
SetDefaults hydrates default values in the t h s r Api station timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationTimetableParams) SetDollarFilter ¶
func (o *THSRAPIStationTimetableParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDollarFormat ¶
func (o *THSRAPIStationTimetableParams) SetDollarFormat(dollarFormat string)
SetDollarFormat adds the dollarFormat to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDollarOrderby ¶
func (o *THSRAPIStationTimetableParams) SetDollarOrderby(dollarOrderby *string)
SetDollarOrderby adds the dollarOrderby to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDollarSelect ¶
func (o *THSRAPIStationTimetableParams) SetDollarSelect(dollarSelect *string)
SetDollarSelect adds the dollarSelect to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDollarSkip ¶
func (o *THSRAPIStationTimetableParams) SetDollarSkip(dollarSkip *string)
SetDollarSkip adds the dollarSkip to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetDollarTop ¶
func (o *THSRAPIStationTimetableParams) SetDollarTop(dollarTop *int64)
SetDollarTop adds the dollarTop to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetHTTPClient ¶
func (o *THSRAPIStationTimetableParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetHealth ¶ added in v0.12.0
func (o *THSRAPIStationTimetableParams) SetHealth(health *string)
SetHealth adds the health to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetStationID ¶
func (o *THSRAPIStationTimetableParams) SetStationID(stationID string)
SetStationID adds the stationId to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetTimeout ¶
func (o *THSRAPIStationTimetableParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) SetTrainDate ¶
func (o *THSRAPIStationTimetableParams) SetTrainDate(trainDate strfmt.DateTime)
SetTrainDate adds the trainDate to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithContext ¶
func (o *THSRAPIStationTimetableParams) WithContext(ctx context.Context) *THSRAPIStationTimetableParams
WithContext adds the context to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDefaults ¶ added in v0.9.0
func (o *THSRAPIStationTimetableParams) WithDefaults() *THSRAPIStationTimetableParams
WithDefaults hydrates default values in the t h s r Api station timetable params (not the query body).
All values with no default are reset to their zero value.
func (*THSRAPIStationTimetableParams) WithDollarFilter ¶
func (o *THSRAPIStationTimetableParams) WithDollarFilter(dollarFilter *string) *THSRAPIStationTimetableParams
WithDollarFilter adds the dollarFilter to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDollarFormat ¶
func (o *THSRAPIStationTimetableParams) WithDollarFormat(dollarFormat string) *THSRAPIStationTimetableParams
WithDollarFormat adds the dollarFormat to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDollarOrderby ¶
func (o *THSRAPIStationTimetableParams) WithDollarOrderby(dollarOrderby *string) *THSRAPIStationTimetableParams
WithDollarOrderby adds the dollarOrderby to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDollarSelect ¶
func (o *THSRAPIStationTimetableParams) WithDollarSelect(dollarSelect *string) *THSRAPIStationTimetableParams
WithDollarSelect adds the dollarSelect to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDollarSkip ¶
func (o *THSRAPIStationTimetableParams) WithDollarSkip(dollarSkip *string) *THSRAPIStationTimetableParams
WithDollarSkip adds the dollarSkip to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithDollarTop ¶
func (o *THSRAPIStationTimetableParams) WithDollarTop(dollarTop *int64) *THSRAPIStationTimetableParams
WithDollarTop adds the dollarTop to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithHTTPClient ¶
func (o *THSRAPIStationTimetableParams) WithHTTPClient(client *http.Client) *THSRAPIStationTimetableParams
WithHTTPClient adds the HTTPClient to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithHealth ¶ added in v0.12.0
func (o *THSRAPIStationTimetableParams) WithHealth(health *string) *THSRAPIStationTimetableParams
WithHealth adds the health to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithStationID ¶
func (o *THSRAPIStationTimetableParams) WithStationID(stationID string) *THSRAPIStationTimetableParams
WithStationID adds the stationID to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithTimeout ¶
func (o *THSRAPIStationTimetableParams) WithTimeout(timeout time.Duration) *THSRAPIStationTimetableParams
WithTimeout adds the timeout to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WithTrainDate ¶
func (o *THSRAPIStationTimetableParams) WithTrainDate(trainDate strfmt.DateTime) *THSRAPIStationTimetableParams
WithTrainDate adds the trainDate to the t h s r Api station timetable params
func (*THSRAPIStationTimetableParams) WriteToRequest ¶
func (o *THSRAPIStationTimetableParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type THSRAPIStationTimetableReader ¶
type THSRAPIStationTimetableReader struct {
// contains filtered or unexported fields
}
THSRAPIStationTimetableReader is a Reader for the THSRAPIStationTimetable structure.
func (*THSRAPIStationTimetableReader) ReadResponse ¶
func (o *THSRAPIStationTimetableReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type THSRAPIStationTimetableStatus299 ¶ added in v0.12.0
type THSRAPIStationTimetableStatus299 struct {
Payload *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
}
THSRAPIStationTimetableStatus299 describes a response with status code 299, with default header values.
加入參數'?health=true'即可查詢此API服務的健康狀態
func NewTHSRAPIStationTimetableStatus299 ¶ added in v0.12.0
func NewTHSRAPIStationTimetableStatus299() *THSRAPIStationTimetableStatus299
NewTHSRAPIStationTimetableStatus299 creates a THSRAPIStationTimetableStatus299 with default headers values
func (*THSRAPIStationTimetableStatus299) Error ¶ added in v0.12.0
func (o *THSRAPIStationTimetableStatus299) Error() string
func (*THSRAPIStationTimetableStatus299) GetPayload ¶ added in v0.12.0
func (o *THSRAPIStationTimetableStatus299) GetPayload() *models.PTXServiceDTOSharedSpecificationV3BaseDisplayHealth
Source Files ¶
- t_h_s_r_api_alert_info_parameters.go
- t_h_s_r_api_alert_info_responses.go
- t_h_s_r_api_available_seat_status1_parameters.go
- t_h_s_r_api_available_seat_status1_responses.go
- t_h_s_r_api_available_seat_status_list_station1_parameters.go
- t_h_s_r_api_available_seat_status_list_station1_responses.go
- t_h_s_r_api_available_seat_status_list_station_parameters.go
- t_h_s_r_api_available_seat_status_list_station_responses.go
- t_h_s_r_api_available_seat_status_o_d1_parameters.go
- t_h_s_r_api_available_seat_status_o_d1_responses.go
- t_h_s_r_api_available_seat_status_o_d2_parameters.go
- t_h_s_r_api_available_seat_status_o_d2_responses.go
- t_h_s_r_api_available_seat_status_o_d_parameters.go
- t_h_s_r_api_available_seat_status_o_d_responses.go
- t_h_s_r_api_available_seat_status_parameters.go
- t_h_s_r_api_available_seat_status_responses.go
- t_h_s_r_api_daily_timetable1_parameters.go
- t_h_s_r_api_daily_timetable1_responses.go
- t_h_s_r_api_daily_timetable2_parameters.go
- t_h_s_r_api_daily_timetable2_responses.go
- t_h_s_r_api_daily_timetable3_parameters.go
- t_h_s_r_api_daily_timetable3_responses.go
- t_h_s_r_api_daily_timetable_parameters.go
- t_h_s_r_api_daily_timetable_responses.go
- t_h_s_r_api_daily_train_info1_parameters.go
- t_h_s_r_api_daily_train_info1_responses.go
- t_h_s_r_api_daily_train_info2_parameters.go
- t_h_s_r_api_daily_train_info2_responses.go
- t_h_s_r_api_daily_train_info3_parameters.go
- t_h_s_r_api_daily_train_info3_responses.go
- t_h_s_r_api_daily_train_info_parameters.go
- t_h_s_r_api_daily_train_info_responses.go
- t_h_s_r_api_general_timetable1_parameters.go
- t_h_s_r_api_general_timetable1_responses.go
- t_h_s_r_api_general_timetable_parameters.go
- t_h_s_r_api_general_timetable_responses.go
- t_h_s_r_api_news_parameters.go
- t_h_s_r_api_news_responses.go
- t_h_s_r_api_o_d_daily_timetable_parameters.go
- t_h_s_r_api_o_d_daily_timetable_responses.go
- t_h_s_r_api_o_d_fare1_parameters.go
- t_h_s_r_api_o_d_fare1_responses.go
- t_h_s_r_api_o_d_fare_parameters.go
- t_h_s_r_api_o_d_fare_responses.go
- t_h_s_r_api_shape_parameters.go
- t_h_s_r_api_shape_responses.go
- t_h_s_r_api_station_exit_parameters.go
- t_h_s_r_api_station_exit_responses.go
- t_h_s_r_api_station_parameters.go
- t_h_s_r_api_station_responses.go
- t_h_s_r_api_station_timetable_parameters.go
- t_h_s_r_api_station_timetable_responses.go
- thsr_client.go