// GetData returns data by path
GetData returns data by path
// GetData returns data by path
func (adapter *vinAdapter) GetData(pathList []string) (data map[string]interface{}, err error) {
	data = make(map[string]interface{})
	for _, path := range pathList {
		if path == adapter.config.VISPath {
			data[path] = adapter.vin
		} else {
			return nil, fmt.Errorf("path %s doesn't exits", path)
		}
	}
	return data, nil
}
func ( adapter * vinAdapter ) GetData ( pathList [ ] string ) ( data map [ string ] interface { } , err error ) { data = make ( map [ string ] interface { } ) for _ , path := range pathList { if path == adapter . config . VISPath { data [ path ] = adapter . vin } else { return nil , fmt . Errorf ( " " , path ) } } return data , nil }
GetData returns data by path
GetData returns data by path