Click or drag to resize

RemoteVehicleInformationServiceSearchByDate Method

OFV Kjøretøydata service

Search for new/changed vehicles since date.

Returns resultset of brand, model and variant, with technical data, based on date-input.

Namespace:  OfvVehicleData.Service
Assembly:  OfvVehicleData.Service (in OfvVehicleData.Service.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public DTO SearchByDate(
	UserDTO user,
	string date,
	bool newbies,
	bool changebies,
	int vehicleGroup,
	string format
)

Parameters

user
Type: OfvService.DTO.LoginUserDTO
UserDTO
date
Type: SystemString
Date string - to search for vehicles since a specific date until current date
newbies
Type: SystemBoolean
if set to true only new vehicles since date will be returned.
changebies
Type: SystemBoolean
if set to true only changed vehicles since date will be returned.
vehicleGroup
Type: SystemInt32
Vehiclegroup code defines which group to work with.
format
Type: SystemString
json/xml - which format result will be delivered in.

Return Value

Type: DTO
Return a List of BrandDTO, status of request and a description that gives any exceptions.
Examples
Hers`s an example on how to search by date for new and/or changed vehicles.

Searching for both new and changes vehicle since 1. may 2012

Input
{
    "user" : {
        "username" : "my@email.com",
        "password" : "b0d7bfc7c0afd3092d50df077110783c",
        "ipAddress" : "192.168.1.254"
    },
    "date" : "01-05-2012",
    "vehicleGroup" : "101",
    "newbies" : true,
    "changebies" : true
}
Input
{
    "success" : true,
    "data" : [{
            "__type" : "br:vehicle",
            "id" : 134,
            "nm" : "Audi",
            "moLs" : [{
                    "id" : 2443,
                    "nm" : "A1",
                    "vaLs" : [{
                            "id" : 189662,
                            "nm" : "1,2 TFSI Attraction",
                            "ve" : {
                                "status" : "C",
                                "thdGrpLs" : [{
                                        "id" : 0,
                                        "thdLs" : [{
                                                "id" : 0,
                                                "nm" : "Bensin",
                                                "mapCode" : "Fuel",
                                                "val" : "B"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Combi-Coupè",
                                                "mapCode" : "Chassis",
                                                "val" : "COM"
                                            }, {
                                                "id" : 702,
                                                "nm" : "Antall dører",
                                                "mapCode" : "702",
                                                "val" : "3"
                                            }, {
                                                "id" : 703,
                                                "nm" : "Antall sitteplasser",
                                                "mapCode" : "703",
                                                "val" : "4"
                                            }, {
                                                "id" : 202,
                                                "nm" : "Sylindre antall",
                                                "mapCode" : "202",
                                                "val" : "4"
                                            }, {
                                                "id" : 201,
                                                "nm" : "Sylindervolum",
                                                "mapCode" : "201",
                                                "val" : "1197",
                                                "valTp" : "cm3"
                                            }, {
                                                "id" : 101,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "101",
                                                "val" : "63",
                                                "valTp" : "kW"
                                            }, {
                                                "id" : 102,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "102",
                                                "val" : "86",
                                                "valTp" : "hk"
                                            }, {
                                                "id" : 104,
                                                "nm" : "Drivhjul total",
                                                "mapCode" : "104",
                                                "val" : "F"
                                            }, {
                                                "id" : 504,
                                                "nm" : "Gir, antall",
                                                "mapCode" : "504",
                                                "val" : "5"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Manuell",
                                                "mapCode" : "Transmission",
                                                "val" : "MAN"
                                            }, {
                                                "id" : 801,
                                                "nm" : "Lengde",
                                                "mapCode" : "801",
                                                "val" : "3954",
                                                "valTp" : "mm"
                                            }, {
                                                "id" : 1001,
                                                "nm" : "Egenvekt uten fører",
                                                "mapCode" : "1001",
                                                "val" : "1040",
                                                "valTp" : "kg"
                                            }, {
                                                "id" : 305,
                                                "nm" : "Forbruk snitt",
                                                "mapCode" : "305",
                                                "val" : "0.51",
                                                "valTp" : "l\/mil"
                                            }, {
                                                "id" : 306,
                                                "nm" : "CO2-utslipp",
                                                "mapCode" : "306",
                                                "val" : "118",
                                                "valTp" : "g\/km"
                                            }, {
                                                "id" : 307,
                                                "nm" : "NOx-utslipp",
                                                "mapCode" : "307",
                                                "val" : "34",
                                                "valTp" : "mg\/km"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Norske kroner",
                                                "mapCode" : "PriceImport",
                                                "val" : "193500",
                                                "valTp" : "NOK"
                                            }
                                        ]
                                    }
                                ],
                                "equGrpLs" : [{
                                        "id" : 0,
                                        "equLs" : [{
                                                "id" : 9,
                                                "nm" : "Metallic lakk",
                                                "cnt" : 0,
                                                "prc" : {
                                                    "id" : 0,
                                                    "val" : 6580,
                                                    "valTp" : "NOK"
                                                },
                                                "std" : false
                                            }
                                        ]
                                    }
                                ],
                                "seg" : {
                                    "id" : 0,
                                    "nm" : "Småbiler",
                                    "sNm" : "-"
                                }
                            }
                        }
                    ]
                }
            ]
        }, {
            "__type" : "br:vehicle",
            "id" : 134,
            "nm" : "Audi",
            "moLs" : [{
                    "id" : 2443,
                    "nm" : "A1",
                    "vaLs" : [{
                            "id" : 189663,
                            "nm" : "1,2 TFSI Ambition",
                            "ve" : {
                                "status" : "C",
                                "thdGrpLs" : [{
                                        "id" : 0,
                                        "thdLs" : [{
                                                "id" : 0,
                                                "nm" : "Bensin",
                                                "mapCode" : "Fuel",
                                                "val" : "B"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Combi-Coupè",
                                                "mapCode" : "Chassis",
                                                "val" : "COM"
                                            }, {
                                                "id" : 702,
                                                "nm" : "Antall dører",
                                                "mapCode" : "702",
                                                "val" : "3"
                                            }, {
                                                "id" : 703,
                                                "nm" : "Antall sitteplasser",
                                                "mapCode" : "703",
                                                "val" : "4"
                                            }, {
                                                "id" : 202,
                                                "nm" : "Sylindre antall",
                                                "mapCode" : "202",
                                                "val" : "4"
                                            }, {
                                                "id" : 201,
                                                "nm" : "Sylindervolum",
                                                "mapCode" : "201",
                                                "val" : "1197",
                                                "valTp" : "cm3"
                                            }, {
                                                "id" : 101,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "101",
                                                "val" : "63",
                                                "valTp" : "kW"
                                            }, {
                                                "id" : 102,
                                                "nm" : "Motorytelse total",
                                                "mapCode" : "102",
                                                "val" : "86",
                                                "valTp" : "hk"
                                            }, {
                                                "id" : 104,
                                                "nm" : "Drivhjul total",
                                                "mapCode" : "104",
                                                "val" : "F"
                                            }, {
                                                "id" : 504,
                                                "nm" : "Gir, antall",
                                                "mapCode" : "504",
                                                "val" : "5"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Manuell",
                                                "mapCode" : "Transmission",
                                                "val" : "MAN"
                                            }, {
                                                "id" : 801,
                                                "nm" : "Lengde",
                                                "mapCode" : "801",
                                                "val" : "3954",
                                                "valTp" : "mm"
                                            }, {
                                                "id" : 1001,
                                                "nm" : "Egenvekt uten fører",
                                                "mapCode" : "1001",
                                                "val" : "1040",
                                                "valTp" : "kg"
                                            }, {
                                                "id" : 305,
                                                "nm" : "Forbruk snitt",
                                                "mapCode" : "305",
                                                "val" : "0.51",
                                                "valTp" : "l\/mil"
                                            }, {
                                                "id" : 306,
                                                "nm" : "CO2-utslipp",
                                                "mapCode" : "306",
                                                "val" : "118",
                                                "valTp" : "g\/km"
                                            }, {
                                                "id" : 307,
                                                "nm" : "NOx-utslipp",
                                                "mapCode" : "307",
                                                "val" : "34",
                                                "valTp" : "mg\/km"
                                            }, {
                                                "id" : 0,
                                                "nm" : "Norske kroner",
                                                "mapCode" : "PriceImport",
                                                "val" : "206800",
                                                "valTp" : "NOK"
                                            }
                                        ]
                                    }
                                ],
                                "equGrpLs" : [{
                                        "id" : 0,
                                        "equLs" : [{
                                                "id" : 9,
                                                "nm" : "Metallic lakk",
                                                "cnt" : 0,
                                                "prc" : {
                                                    "id" : 0,
                                                    "val" : 6580,
                                                    "valTp" : "NOK"
                                                },
                                                "std" : false
                                            }
                                        ]
                                    }
                                ],
                                "seg" : {
                                    "id" : 0,
                                    "nm" : "Småbiler",
                                    "sNm" : "-"
                                }
                            }
                        }
                    ]
                }
            ]
        },
        ....................
        ....................
    }]
}
See Also