t_h_s_r

package
v0.14.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2021 License: BSD-2-Clause Imports: 11 Imported by: 0

Documentation

Index

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

THSRAPIAlertInfo 取得即時通阻事件資料s

取得即時通阻事件資料

func (*Client) THSRAPIAvailableSeatStatus added in v0.6.0

THSRAPIAvailableSeatStatus 開發用測試版s 取得當天對號座即時剩餘位資料 原始 列車區段 leg角度

取得當天對號座即時剩餘位資料({原始}列車區段Leg角度)

- (更新頻率為10分鐘) - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**

func (*Client) THSRAPIAvailableSeatStatus1 added in v0.6.0

THSRAPIAvailableSeatStatus1 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 原始 列車區段 leg角度

取得指定[日期]對號座即時剩餘位資料({原始}列車區段Leg角度)

- (更新頻率為每日的10、16、22時) - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**

func (*Client) THSRAPIAvailableSeatStatusListStation added in v0.6.0

THSRAPIAvailableSeatStatusListStation 取得動態對號座剩餘座位資訊看板資料s

取得動態對號座剩餘座位資訊看板資料

func (*Client) THSRAPIAvailableSeatStatusListStation1 added in v0.6.0

THSRAPIAvailableSeatStatusListStation1 取得動態指定s 車站 的對號座剩餘座位資訊看板資料

取得動態指定[車站]的對號座剩餘座位資訊看板資料

func (*Client) THSRAPIAvailableSeatStatusOD added in v0.7.0

THSRAPIAvailableSeatStatusOD 開發用測試版s 取得指定 日期 對號座即時剩餘位資料 加值型列車起迄段 o d角度

取得指定[日期]對號座即時剩餘位資料(加值型列車起迄段OD角度)

- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**

func (*Client) THSRAPIAvailableSeatStatusOD1 added in v0.7.0

THSRAPIAvailableSeatStatusOD1 開發用測試版s 取得指定 日期 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度

取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)

- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**

func (*Client) THSRAPIAvailableSeatStatusOD2 added in v0.7.0

THSRAPIAvailableSeatStatusOD2 開發用測試版s 取得指定 日期 車次 起迄站 對號座即時剩餘位資料 加值型列車起迄段 o d角度

取得指定[日期], [起迄站]對號座即時剩餘位資料(加值型列車起迄段OD角度)

- 當日(D)之更新頻率為每10分鐘 - 當日後27日(D+1~D+27)之更新頻率為每日的10、16、22時 - **(本服務尚在測試中,穩定度及更新頻率將持續優化)**

func (*Client) THSRAPIDailyTimetable

THSRAPIDailyTimetable 取得當天所有車次的時刻表資料s

取得當天所有車次的時刻表資料

func (*Client) THSRAPIDailyTimetable1

THSRAPIDailyTimetable1 取得當天指定s 車次 的時刻表資料

取得當天指定[車次]的時刻表資料

func (*Client) THSRAPIDailyTimetable2

THSRAPIDailyTimetable2 取得指定s 日期 所有車次的時刻表資料

取得指定[日期]所有車次的時刻表資料(高鐵提供近28天每日時刻表)

func (*Client) THSRAPIDailyTimetable3

THSRAPIDailyTimetable3 取得指定s 日期 車次 的時刻表資料

取得指定[日期],[車次]的時刻表資料(高鐵提供近28天每日時刻表)

func (*Client) THSRAPIDailyTrainInfo

THSRAPIDailyTrainInfo 取得當天所有車次的車次資料s

取得當天所有車次的車次資料

func (*Client) THSRAPIDailyTrainInfo1

THSRAPIDailyTrainInfo1 取得當天指定s 車次 的車次資料

取得當天指定[車次]的車次資料

func (*Client) THSRAPIDailyTrainInfo2

THSRAPIDailyTrainInfo2 取得指定s 日期 所有車次的車次資料

取得指定[日期]所有車次的車次資料(高鐵提供近28天每日時刻表)

func (*Client) THSRAPIDailyTrainInfo3

THSRAPIDailyTrainInfo3 取得指定s 日期 車次 的車次資料

取得指定[日期],[車次]的車次資料(高鐵提供近28天每日時刻表)

func (*Client) THSRAPIGeneralTimetable

THSRAPIGeneralTimetable 取得所有車次的定期時刻表資料s

取得所有車次的定期時刻表資料

func (*Client) THSRAPIGeneralTimetable1

THSRAPIGeneralTimetable1 取得指定s 車次 的定期時刻表資料

取得指定[車次]的定期時刻表資料

func (*Client) THSRAPINews

func (a *Client) THSRAPINews(params *THSRAPINewsParams, opts ...ClientOption) (*THSRAPINewsOK, *THSRAPINewsStatus299, error)

THSRAPINews 取得高鐵最新消息資料s

取得高鐵最新消息資料

func (*Client) THSRAPIODDailyTimetable

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

THSRAPIStationExit 取得車站出入口基本資料s

取得車站出入口基本資料

func (*Client) THSRAPIStationTimetable

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

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

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

WithContext adds the context to the t h s r Api alert info params

func (*THSRAPIAlertInfoParams) WithDefaults added in v0.9.0

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

WithTimeout adds the timeout to the t h s r Api alert info params

func (*THSRAPIAlertInfoParams) WriteToRequest

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

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

type THSRAPIAvailableSeatStatus1OK added in v0.6.0

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

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

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

WithContext adds the context to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithDefaults added in v0.9.0

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

WithDollarCount adds the dollarCount to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithDollarFilter added in v0.6.0

WithDollarFilter adds the dollarFilter to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithDollarFormat added in v0.6.0

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

WithDollarSelect adds the dollarSelect to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithDollarSkip added in v0.6.0

WithDollarSkip adds the dollarSkip to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithDollarTop added in v0.6.0

WithDollarTop adds the dollarTop to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithHTTPClient added in v0.6.0

WithHTTPClient adds the HTTPClient to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithTimeout added in v0.6.0

WithTimeout adds the timeout to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WithTrainDate added in v0.6.0

WithTrainDate adds the trainDate to the t h s r Api available seat status 1 params

func (*THSRAPIAvailableSeatStatus1Params) WriteToRequest added in v0.6.0

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 (*THSRAPIAvailableSeatStatus1Status299) GetPayload added in v0.12.0

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

type THSRAPIAvailableSeatStatusListStation1OK added in v0.6.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*THSRAPIAvailableSeatStatusListStation1Status299) GetPayload added in v0.12.0

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

type THSRAPIAvailableSeatStatusListStationOK added in v0.6.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*THSRAPIAvailableSeatStatusListStationStatus299) GetPayload added in v0.12.0

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

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

type THSRAPIAvailableSeatStatusOD1OK added in v0.7.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*THSRAPIAvailableSeatStatusOD1Status299) GetPayload added in v0.12.0

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

type THSRAPIAvailableSeatStatusOD2OK added in v0.7.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*THSRAPIAvailableSeatStatusOD2Status299) GetPayload added in v0.12.0

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

type THSRAPIAvailableSeatStatusODOK added in v0.7.0

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 (*THSRAPIAvailableSeatStatusODStatus299) GetPayload added in v0.12.0

type THSRAPIAvailableSeatStatusOK added in v0.6.0

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

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

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

WithContext adds the context to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WithDefaults added in v0.9.0

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

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

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

WithDollarSkip adds the dollarSkip to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WithDollarTop added in v0.6.0

WithDollarTop adds the dollarTop to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WithHTTPClient added in v0.6.0

WithHTTPClient adds the HTTPClient to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WithTimeout added in v0.6.0

WithTimeout adds the timeout to the t h s r Api available seat status params

func (*THSRAPIAvailableSeatStatusParams) WriteToRequest added in v0.6.0

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 (*THSRAPIAvailableSeatStatusStatus299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily timetable 1 params

func (*THSRAPIDailyTimetable1Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 1 params

func (*THSRAPIDailyTimetable1Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily timetable 1 params

func (*THSRAPIDailyTimetable1Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily timetable 1 params

func (*THSRAPIDailyTimetable1Params) WithTrainNo

WithTrainNo adds the trainNo to the t h s r Api daily timetable 1 params

func (*THSRAPIDailyTimetable1Params) WriteToRequest

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 (*THSRAPIDailyTimetable1Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily timetable 2 params

func (*THSRAPIDailyTimetable2Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 2 params

func (*THSRAPIDailyTimetable2Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily timetable 2 params

func (*THSRAPIDailyTimetable2Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily timetable 2 params

func (*THSRAPIDailyTimetable2Params) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api daily timetable 2 params

func (*THSRAPIDailyTimetable2Params) WriteToRequest

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 (*THSRAPIDailyTimetable2Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WithTrainNo

WithTrainNo adds the trainNo to the t h s r Api daily timetable 3 params

func (*THSRAPIDailyTimetable3Params) WriteToRequest

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 (*THSRAPIDailyTimetable3Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily timetable params

func (*THSRAPIDailyTimetableParams) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily timetable params

func (*THSRAPIDailyTimetableParams) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily timetable params

func (*THSRAPIDailyTimetableParams) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily timetable params

func (*THSRAPIDailyTimetableParams) WriteToRequest

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 (*THSRAPIDailyTimetableStatus299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily train info 1 params

func (*THSRAPIDailyTrainInfo1Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 1 params

func (*THSRAPIDailyTrainInfo1Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily train info 1 params

func (*THSRAPIDailyTrainInfo1Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily train info 1 params

func (*THSRAPIDailyTrainInfo1Params) WithTrainNo

WithTrainNo adds the trainNo to the t h s r Api daily train info 1 params

func (*THSRAPIDailyTrainInfo1Params) WriteToRequest

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 (*THSRAPIDailyTrainInfo1Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily train info 2 params

func (*THSRAPIDailyTrainInfo2Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 2 params

func (*THSRAPIDailyTrainInfo2Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily train info 2 params

func (*THSRAPIDailyTrainInfo2Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily train info 2 params

func (*THSRAPIDailyTrainInfo2Params) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api daily train info 2 params

func (*THSRAPIDailyTrainInfo2Params) WriteToRequest

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 (*THSRAPIDailyTrainInfo2Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WithTrainNo

WithTrainNo adds the trainNo to the t h s r Api daily train info 3 params

func (*THSRAPIDailyTrainInfo3Params) WriteToRequest

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 (*THSRAPIDailyTrainInfo3Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api daily train info params

func (*THSRAPIDailyTrainInfoParams) WithDefaults added in v0.9.0

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

WithHTTPClient adds the HTTPClient to the t h s r Api daily train info params

func (*THSRAPIDailyTrainInfoParams) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api daily train info params

func (*THSRAPIDailyTrainInfoParams) WithTimeout

WithTimeout adds the timeout to the t h s r Api daily train info params

func (*THSRAPIDailyTrainInfoParams) WriteToRequest

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 (*THSRAPIDailyTrainInfoStatus299) GetPayload added in v0.12.0

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

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 (*THSRAPIGeneralTimetable1OK) GetPayload

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

WithContext adds the context to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithDefaults added in v0.9.0

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

WithDollarSkip adds the dollarSkip to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithDollarTop

WithDollarTop adds the dollarTop to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithHTTPClient

WithHTTPClient adds the HTTPClient to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithTimeout

WithTimeout adds the timeout to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WithTrainNo

WithTrainNo adds the trainNo to the t h s r Api general timetable 1 params

func (*THSRAPIGeneralTimetable1Params) WriteToRequest

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 (*THSRAPIGeneralTimetable1Status299) GetPayload added in v0.12.0

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

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

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

WithContext adds the context to the t h s r Api general timetable params

func (*THSRAPIGeneralTimetableParams) WithDefaults added in v0.9.0

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

WithDollarTop adds the dollarTop to the t h s r Api general timetable params

func (*THSRAPIGeneralTimetableParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the t h s r Api general timetable params

func (*THSRAPIGeneralTimetableParams) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api general timetable params

func (*THSRAPIGeneralTimetableParams) WithTimeout

WithTimeout adds the timeout to the t h s r Api general timetable params

func (*THSRAPIGeneralTimetableParams) WriteToRequest

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 (*THSRAPIGeneralTimetableStatus299) GetPayload added in v0.12.0

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

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

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

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

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

WithContext adds the context to the t h s r Api o d daily timetable params

func (*THSRAPIODDailyTimetableParams) WithDefaults added in v0.9.0

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

WithDollarTop adds the dollarTop to the t h s r Api o d daily timetable params

func (*THSRAPIODDailyTimetableParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the t h s r Api o d daily timetable params

func (*THSRAPIODDailyTimetableParams) WithHealth added in v0.12.0

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

WithTimeout adds the timeout to the t h s r Api o d daily timetable params

func (*THSRAPIODDailyTimetableParams) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api o d daily timetable params

func (*THSRAPIODDailyTimetableParams) WriteToRequest

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 (*THSRAPIODDailyTimetableStatus299) GetPayload added in v0.12.0

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

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

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

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

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

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

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

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

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

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

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

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

WithContext adds the context to the t h s r Api station exit params

func (*THSRAPIStationExitParams) WithDefaults added in v0.9.0

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

WithHealth adds the health to the t h s r Api station exit params

func (*THSRAPIStationExitParams) WithTimeout

WithTimeout adds the timeout to the t h s r Api station exit params

func (*THSRAPIStationExitParams) WriteToRequest

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 (*THSRAPIStationExitStatus299) GetPayload added in v0.12.0

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

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

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

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

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

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

WithContext adds the context to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithDefaults added in v0.9.0

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

WithDollarTop adds the dollarTop to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithHealth added in v0.12.0

WithHealth adds the health to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithStationID

WithStationID adds the stationID to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithTimeout

WithTimeout adds the timeout to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WithTrainDate

WithTrainDate adds the trainDate to the t h s r Api station timetable params

func (*THSRAPIStationTimetableParams) WriteToRequest

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 (*THSRAPIStationTimetableStatus299) GetPayload added in v0.12.0

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL