Skip to content

Commit

Permalink
Merged by Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
untangle-bot authored Feb 23, 2024
2 parents 5cb29be + b2d9aa8 commit d9ac7b6
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions services/captiveportal/captiveportal.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,29 +23,17 @@ type CpRules struct {
Action *CpRulesAction `json:"Action,omitempty"`
}

type ImageDetails struct {
ImageName string `json:"imageName,omitempty"`
}

func (x *ImageDetails) GetImageName() string {
if x != nil {
return x.ImageName
}
return ""
}

type CpSettingType struct {
Enabled bool `json:"Enabled,omitempty"`
TimeoutValue int32 `json:"TimeoutValue,omitempty"`
TimeoutPeriod string `json:"TimeoutPeriod,omitempty"`
AcceptText string `json:"AcceptText,omitempty"`
AcceptButtonText string `json:"AcceptButtonText,omitempty"`
MessageHeading string `json:"MessageHeading,omitempty"`
MessageText string `json:"MessageText,omitempty"`
WelcomeText string `json:"WelcomeText,omitempty"`
PageTitle string `json:"PageTitle,omitempty"`
Logo *ImageDetails `json:"logo,omitempty"`
Rules []*CpRules `json:"Rules,omitempty"`
Enabled bool `json:"Enabled,omitempty"`
TimeoutValue int32 `json:"TimeoutValue,omitempty"`
TimeoutPeriod string `json:"TimeoutPeriod,omitempty"`
AcceptText string `json:"AcceptText,omitempty"`
AcceptButtonText string `json:"AcceptButtonText,omitempty"`
MessageHeading string `json:"MessageHeading,omitempty"`
MessageText string `json:"MessageText,omitempty"`
WelcomeText string `json:"WelcomeText,omitempty"`
PageTitle string `json:"PageTitle,omitempty"`
Rules []*CpRules `json:"Rules,omitempty"`
}

func (x *CpSettingType) GetEnabled() bool {
Expand Down Expand Up @@ -111,13 +99,6 @@ func (x *CpSettingType) GetPageTitle() string {
return ""
}

func (x *CpSettingType) GetLogo() *ImageDetails {
if x != nil {
return x.Logo
}
return nil
}

func (x *CpSettingType) GetRules() []*CpRules {
if x != nil {
return x.Rules
Expand Down

0 comments on commit d9ac7b6

Please sign in to comment.