Skip to content

Commit

Permalink
Rename WANPPPConnectionResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
mcktr committed Sep 9, 2019
1 parent eda8b16 commit ab4d0e6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/check_fritz/check_connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func CheckConnectionStatus(aI ArgumentInformation) {
return
}

soapResp := fritz.WANPPPConnectionResponse{}
soapResp := fritz.WANConnectionInfoResponse{}
err = fritz.UnmarshalSoapResponse(&soapResp, res)

if err != nil {
Expand Down Expand Up @@ -93,7 +93,7 @@ func CheckConnectionUptime(aI ArgumentInformation) {
return
}

soapResp := fritz.WANPPPConnectionResponse{}
soapResp := fritz.WANConnectionInfoResponse{}
err = fritz.UnmarshalSoapResponse(&soapResp, res)

if err != nil {
Expand Down
4 changes: 2 additions & 2 deletions modules/fritz/fritz_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
type TR064Response interface {
}

// WANPPPConnectionResponse is the data structure for responses from WANPPPConnection
type WANPPPConnectionResponse struct {
// WANConnectionInfoResponse is the data structure for responses from WANPPPConnection
type WANConnectionInfoResponse struct {
TR064Response
NewEnable string `xml:"Body>GetInfoResponse>NewEnable"`
NewConnectionStatus string `xml:"Body>GetInfoResponse>NewConnectionStatus"`
Expand Down

0 comments on commit ab4d0e6

Please sign in to comment.