2019-02-09 12:30:49 +00:00
|
|
|
package urlbuilders
|
|
|
|
|
|
|
|
import "strconv"
|
|
|
|
|
2019-02-14 22:53:32 +00:00
|
|
|
type PerformerURLBuilder struct {
|
|
|
|
BaseURL string
|
2019-02-09 12:30:49 +00:00
|
|
|
PerformerID string
|
|
|
|
}
|
|
|
|
|
2019-02-14 22:53:32 +00:00
|
|
|
func NewPerformerURLBuilder(baseURL string, performerID int) PerformerURLBuilder {
|
|
|
|
return PerformerURLBuilder{
|
|
|
|
BaseURL: baseURL,
|
2019-02-09 12:30:49 +00:00
|
|
|
PerformerID: strconv.Itoa(performerID),
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-14 22:53:32 +00:00
|
|
|
func (b PerformerURLBuilder) GetPerformerImageURL() string {
|
2019-02-09 12:30:49 +00:00
|
|
|
return b.BaseURL + "/performer/" + b.PerformerID + "/image"
|
|
|
|
}
|