Skip to content

Commit

Permalink
expose language
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 27, 2018
1 parent 4e8f210 commit ef87582
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import (
type Wrapper interface {
SetUserAgent(newUserAgent string)
ServerURL() string
GetLanguage() string
GetPageContent(url.Values) string
PostPageContent(url.Values, url.Values) string
Login() error
Expand Down Expand Up @@ -2678,6 +2679,11 @@ func (b *OGame) ServerURL() string {
return b.serverURL
}

// GetLanguage ...
func (b *OGame) GetLanguage() string {
return b.language
}

// SetUserAgent change the user-agent used by the http client
func (b *OGame) SetUserAgent(newUserAgent string) {
b.client.UserAgent = newUserAgent
Expand Down

0 comments on commit ef87582

Please sign in to comment.