Commit 50d5eb14 authored by Ikram Haq's avatar Ikram Haq
Browse files

Update server stubs for userAreaSubscription and Notification

parent 4fa8eb0d
Loading
Loading
Loading
Loading
+363 −274

File changed.

Preview size limit exceeded, changes collapsed.

+10 −10
Original line number Diff line number Diff line
@@ -35,24 +35,24 @@ func ApGET(w http.ResponseWriter, r *http.Request) {
	apGet(w, r)
}

func AreaCircleSubDELETE(w http.ResponseWriter, r *http.Request) {
	areaCircleSubDelete(w, r)
func AreaSubDELETE(w http.ResponseWriter, r *http.Request) {
	areaSubDELETE(w, r)
}

func AreaCircleSubGET(w http.ResponseWriter, r *http.Request) {
	areaCircleSubGet(w, r)
func AreaSubGET(w http.ResponseWriter, r *http.Request) {
	areaSubGET(w, r)
}

func AreaCircleSubListGET(w http.ResponseWriter, r *http.Request) {
	areaCircleSubListGet(w, r)
func AreaSubListGET(w http.ResponseWriter, r *http.Request) {
	areaSubListGET(w, r)
}

func AreaCircleSubPOST(w http.ResponseWriter, r *http.Request) {
	areaCircleSubPost(w, r)
func AreaSubPOST(w http.ResponseWriter, r *http.Request) {
	areaSubPOST(w, r)
}

func AreaCircleSubPUT(w http.ResponseWriter, r *http.Request) {
	areaCircleSubPut(w, r)
func AreaSubPUT(w http.ResponseWriter, r *http.Request) {
	areaSubPUT(w, r)
}

func DistanceGET(w http.ResponseWriter, r *http.Request) {
+6 −6
Original line number Diff line number Diff line
@@ -1327,7 +1327,7 @@ func deregisterDistance(subsIdStr string) {
	mutex.Lock()
	defer mutex.Unlock()
	distanceSubscriptionMap[subsId] = nil
	distanceSubscriptionMap[subsId] = nil
	distanceSubscriptionMap1[subsId] = nil
}

func registerDistance1(distanceSub *UserDistanceSubscription, subsIdStr string) {
@@ -2637,7 +2637,7 @@ func populateDistanceList(key string, jsonInfo string, userData interface{}) err
	return nil
}

func areaCircleSubDelete(w http.ResponseWriter, r *http.Request) {
func areaSubDELETE(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	vars := mux.Vars(r)

@@ -2657,7 +2657,7 @@ func areaCircleSubDelete(w http.ResponseWriter, r *http.Request) {
	w.WriteHeader(http.StatusNoContent)
}

func areaCircleSubListGet(w http.ResponseWriter, r *http.Request) {
func areaSubListGET(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")

	var response InlineNotificationSubscriptionList
@@ -2684,7 +2684,7 @@ func areaCircleSubListGet(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, string(jsonResponse))
}

func areaCircleSubGet(w http.ResponseWriter, r *http.Request) {
func areaSubGET(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	vars := mux.Vars(r)

@@ -2714,7 +2714,7 @@ func areaCircleSubGet(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, string(jsonResponse))
}

func areaCircleSubPost(w http.ResponseWriter, r *http.Request) {
func areaSubPOST(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	var response InlineCircleNotificationSubscription

@@ -2826,7 +2826,7 @@ func areaCircleSubPost(w http.ResponseWriter, r *http.Request) {
	fmt.Fprint(w, string(jsonResponse))
}

func areaCircleSubPut(w http.ResponseWriter, r *http.Request) {
func areaSubPUT(w http.ResponseWriter, r *http.Request) {
	w.Header().Set("Content-Type", "application/json; charset=UTF-8")
	vars := mux.Vars(r)

+19 −0
Original line number Diff line number Diff line
/*
 * AdvantEDGE Location API
 *
 * Location Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC013 Location API](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/013/02.02.01_60/gs_mec013v020201p.pdf) <p>The API is based on the Open Mobile Alliance's specification RESTful Network API for Zonal Presence <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-loc-serv](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-loc-serv) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about Users (UE) and Zone locations <p>**Note**<br>AdvantEDGE supports all of Location API endpoints (see below).
 *
 * API version: 2.2.1
 * Contact: AdvantEDGE@InterDigital.com
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

type AreaInfo struct {
	// Shall include one point if the shape is CIRCLE. Shall include 3-15 points if the shape is POLYGON.
	Points []Point `json:"points"`
	// Shall be present if the shape is CIRCLE.
	Radius int32 `json:"radius,omitempty"`
	// The shape of the area monitored: 1 = CIRCLE. 2 = POLYGON
	Shape int32 `json:"shape"`
}
+14 −0
Original line number Diff line number Diff line
/*
 * AdvantEDGE Location API
 *
 * Location Service is AdvantEDGE's implementation of [ETSI MEC ISG MEC013 Location API](https://www.etsi.org/deliver/etsi_gs/MEC/001_099/013/02.02.01_60/gs_mec013v020201p.pdf) <p>The API is based on the Open Mobile Alliance's specification RESTful Network API for Zonal Presence <p>[Copyright (c) ETSI 2017](https://forge.etsi.org/etsi-forge-copyright-notice.txt) <p>**Micro-service**<br>[meep-loc-serv](https://github.com/InterDigitalInc/AdvantEDGE/tree/master/go-apps/meep-loc-serv) <p>**Type & Usage**<br>Edge Service used by edge applications that want to get information about Users (UE) and Zone locations <p>**Note**<br>AdvantEDGE supports all of Location API endpoints (see below).
 *
 * API version: 2.2.1
 * Contact: AdvantEDGE@InterDigital.com
 * Generated by: Swagger Codegen (https://github.com/swagger-api/swagger-codegen.git)
 */
package server

type InlineUserAreaNotification struct {
	UserAreaNotification *UserAreaNotification `json:"userAreaNotification,omitempty"`
}
Loading