import { File } from '../mslib/File'
import { OpResult } from '../mslib/OpResult'

export namespace AdMgtGetAdDyPlanDetialServiceDeclare {
        export namespace $parameters {
            export interface AdDeliveryPlanId{
            }


        }
        export namespace $results {
            export interface Data{
                id?: string
                adInfo?: AdInfo
                adPositionInfo?: AdPositionInfo
                materialInfo?: MaterialInfo
                chargeType?: number
                price?: number
                startTime?: Date
                endTime?: Date
                displayTimes?: number
                displayTimesPerUser?: number
                status?: number
                deliveryStatus?: number
                cityDeliveryConfigs?: Array<CityDeliveryConfig>
            }


            export interface AdInfo{
                id?: string
                name?: string
            }


            export interface AdPositionInfo{
                id?: string
                name?: string
            }


            export interface MaterialInfo{
                id?: string
                name?: string
                materialDeatils?: Array<MaterialDeatil>
                styleInfo?: StyleInfo
            }


            export interface MaterialDeatil{
                id?: string
                type?: number
                value?: string
            }


            export interface StyleInfo{
                id?: string
                adPositionType?: number
                name?: string
                width?: number
                height?: number
            }


            export interface CityDeliveryConfig{
                cityId?: string
                lotDeliveryConfigs?: Array<LotDeliveryConfig>
            }


            export interface LotDeliveryConfig{
                lotId?: string
            }


        }



    export type Parameters = $parameters.AdDeliveryPlanId

    export type Result = OpResult<$results.Data>
}

export type Parameters = AdMgtGetAdDyPlanDetialServiceDeclare.Parameters
export type Result = AdMgtGetAdDyPlanDetialServiceDeclare.Result
