From ab4d0e68ee74eefb315251c97d6552bd35d702f8 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Mon, 9 Sep 2019 17:37:46 +0200 Subject: [PATCH] Rename WANPPPConnectionResponse --- cmd/check_fritz/check_connection.go | 4 ++-- modules/fritz/fritz_response.go | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/check_fritz/check_connection.go b/cmd/check_fritz/check_connection.go index 7e8a198..0607e43 100644 --- a/cmd/check_fritz/check_connection.go +++ b/cmd/check_fritz/check_connection.go @@ -37,7 +37,7 @@ func CheckConnectionStatus(aI ArgumentInformation) { return } - soapResp := fritz.WANPPPConnectionResponse{} + soapResp := fritz.WANConnectionInfoResponse{} err = fritz.UnmarshalSoapResponse(&soapResp, res) if err != nil { @@ -93,7 +93,7 @@ func CheckConnectionUptime(aI ArgumentInformation) { return } - soapResp := fritz.WANPPPConnectionResponse{} + soapResp := fritz.WANConnectionInfoResponse{} err = fritz.UnmarshalSoapResponse(&soapResp, res) if err != nil { diff --git a/modules/fritz/fritz_response.go b/modules/fritz/fritz_response.go index c49b22e..0b1fbee 100644 --- a/modules/fritz/fritz_response.go +++ b/modules/fritz/fritz_response.go @@ -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"`