dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts@v1.0.2/dtos/responses/application_devices.go (about)

     1  //
     2  // Copyright (C) 2020 IOTech Ltd
     3  //
     4  // SPDX-License-Identifier: Apache-2.0
     5  
     6  package responses
     7  
     8  import (
     9  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos"
    10  	"dev.azure.com/aidainnovazione0090/DeviceManager/_git/go-mod-core-contracts/dtos/common"
    11  )
    12  
    13  type LinkAndStatus struct {
    14  	dtos.Link
    15  	Device *dtos.Device `json:"device,omitempty"`
    16  }
    17  
    18  type ApplicationWithLinksAndStatus struct {
    19  	dtos.ApplicationWithLinks
    20  	Links   []LinkAndStatus `json:"links"`
    21  	Devices []dtos.Device   `json:"devices"`
    22  }
    23  
    24  type MultiApplicationsWithLinksAndStatusResponse struct {
    25  	common.BaseWithTotalCountResponse `json:",inline"`
    26  	Applications                      []ApplicationWithLinksAndStatus `json:"applications"`
    27  }