Loading go-apps/meep-loc-serv/server/loc-serv.go +6 −1 Original line number Diff line number Diff line Loading @@ -4380,7 +4380,12 @@ func handleZoneStatusSubscription(w http.ResponseWriter, requestBody []map[strin } nextZoneStatusSubscriptionIdAvailable = newSubsId + 2 // Increment by 2 to ensure the next even number subsIdStr := strconv.Itoa(newSubsId) zoneStatusSub.ResourceURL = hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr zoneStatusSub.Links = &Links{ Self: &LinkType{ Href: hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr, }, } // zoneStatusSub.ResourceURL = hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr _ = rc.JSONSetEntry(baseKey+typeZoneStatusSubscription+":"+subsIdStr, ".", convertZoneStatusSubscriptionToJson(&zoneStatusSub)) registerZoneStatus(zoneStatusSub.ZoneId, zoneStatusSub.UpperNumberOfUsersZoneThreshold, zoneStatusSub.UpperNumberOfUsersAPThreshold, zoneStatusSub.OperationStatus, subsIdStr, zoneStatusSub.LowerNumberOfUsersZoneThreshold, zoneStatusSub.LowerNumberOfUsersAPThreshold) Loading go-apps/meep-loc-serv/server/model_zone_status_subscription.go +1 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ package server type ZoneStatusSubscription struct { Links *Links `json:"_links,omitempty"` ResourceURL string `json:"resourceURL,omitempty"` // URI exposed by the client on which to receive notifications via HTTP. See note 1. CallbackReference *CallbackReference `json:"callbackReference"` Loading Loading
go-apps/meep-loc-serv/server/loc-serv.go +6 −1 Original line number Diff line number Diff line Loading @@ -4380,7 +4380,12 @@ func handleZoneStatusSubscription(w http.ResponseWriter, requestBody []map[strin } nextZoneStatusSubscriptionIdAvailable = newSubsId + 2 // Increment by 2 to ensure the next even number subsIdStr := strconv.Itoa(newSubsId) zoneStatusSub.ResourceURL = hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr zoneStatusSub.Links = &Links{ Self: &LinkType{ Href: hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr, }, } // zoneStatusSub.ResourceURL = hostUrl.String() + basePath + "subscriptions/zones/" + subsIdStr _ = rc.JSONSetEntry(baseKey+typeZoneStatusSubscription+":"+subsIdStr, ".", convertZoneStatusSubscriptionToJson(&zoneStatusSub)) registerZoneStatus(zoneStatusSub.ZoneId, zoneStatusSub.UpperNumberOfUsersZoneThreshold, zoneStatusSub.UpperNumberOfUsersAPThreshold, zoneStatusSub.OperationStatus, subsIdStr, zoneStatusSub.LowerNumberOfUsersZoneThreshold, zoneStatusSub.LowerNumberOfUsersAPThreshold) Loading
go-apps/meep-loc-serv/server/model_zone_status_subscription.go +1 −0 Original line number Diff line number Diff line Loading @@ -10,6 +10,7 @@ package server type ZoneStatusSubscription struct { Links *Links `json:"_links,omitempty"` ResourceURL string `json:"resourceURL,omitempty"` // URI exposed by the client on which to receive notifications via HTTP. See note 1. CallbackReference *CallbackReference `json:"callbackReference"` Loading