4226 lines
164 KiB
Mathematica
4226 lines
164 KiB
Mathematica
|
//////////////////////////////////////////////////////////
|
||
|
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||
|
//////////////////////////////////////////////////////////
|
||
|
|
||
|
#import "SubHandler6.h"
|
||
|
#import "FluttifyMessageCodec.h"
|
||
|
#import <AMapSearchKit/AMapSearchKit.h>
|
||
|
#import "AMapNearbySearchManagerDelegate_Anonymous.h"
|
||
|
#import "AMapSearchDelegate_Anonymous.h"
|
||
|
|
||
|
// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器
|
||
|
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
|
||
|
// Dart端随机存取对象的容器
|
||
|
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
|
||
|
// 日志打印开关
|
||
|
extern BOOL enableLog;
|
||
|
|
||
|
@implementation AmapSearchFluttifyPlugin (SubHandler6)
|
||
|
- (NSDictionary<NSString*, Handler>*) getSubHandler6 {
|
||
|
__weak __typeof(self)weakSelf = self;
|
||
|
return @{
|
||
|
@"AMapDistanceSearchRequest::set_requireExtension": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapDistanceSearchRequest::set_requireExtension");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
BOOL requireExtension = [args[@"requireExtension"] boolValue];
|
||
|
|
||
|
// ref
|
||
|
AMapDistanceSearchRequest* ref = (AMapDistanceSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.requireExtension = requireExtension;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapDistanceSearchResponse::set_results": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapDistanceSearchResponse::set_results");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapDistanceResult*>* results = (NSArray<AMapDistanceResult*>*) args[@"results"];
|
||
|
|
||
|
// ref
|
||
|
AMapDistanceSearchResponse* ref = (AMapDistanceSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.results = results;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapWeatherSearchRequest::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapWeatherSearchRequest::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapWeatherSearchRequest* ref = (AMapWeatherSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapWeatherSearchRequest::set_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapWeatherSearchRequest::set_type");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// enum arg
|
||
|
AMapWeatherType type = (AMapWeatherType) [args[@"type"] integerValue];
|
||
|
|
||
|
// ref
|
||
|
AMapWeatherSearchRequest* ref = (AMapWeatherSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.type = type;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapWeatherSearchResponse::set_lives": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapWeatherSearchResponse::set_lives");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapLocalWeatherLive*>* lives = (NSArray<AMapLocalWeatherLive*>*) args[@"lives"];
|
||
|
|
||
|
// ref
|
||
|
AMapWeatherSearchResponse* ref = (AMapWeatherSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.lives = lives;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapWeatherSearchResponse::set_forecasts": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapWeatherSearchResponse::set_forecasts");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapLocalWeatherForecast*>* forecasts = (NSArray<AMapLocalWeatherForecast*>*) args[@"forecasts"];
|
||
|
|
||
|
// ref
|
||
|
AMapWeatherSearchResponse* ref = (AMapWeatherSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.forecasts = forecasts;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchRequest::set_center": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchRequest::set_center");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* center = (AMapGeoPoint*) (args[@"center"] == [NSNull null] ? nil : args[@"center"]);
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchRequest* ref = (AMapNearbySearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.center = center;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchRequest::set_radius": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchRequest::set_radius");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger radius = [args[@"radius"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchRequest* ref = (AMapNearbySearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.radius = radius;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchRequest::set_searchType": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchRequest::set_searchType");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// enum arg
|
||
|
AMapNearbySearchType searchType = (AMapNearbySearchType) [args[@"searchType"] integerValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchRequest* ref = (AMapNearbySearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.searchType = searchType;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchRequest::set_timeRange": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchRequest::set_timeRange");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger timeRange = [args[@"timeRange"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchRequest* ref = (AMapNearbySearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.timeRange = timeRange;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchRequest::set_limit": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchRequest::set_limit");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger limit = [args[@"limit"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchRequest* ref = (AMapNearbySearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.limit = limit;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchResponse::set_count": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchResponse::set_count");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger count = [args[@"count"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchResponse* ref = (AMapNearbySearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.count = count;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNearbySearchResponse::set_infos": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNearbySearchResponse::set_infos");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapNearbyUserInfo*>* infos = (NSArray<AMapNearbyUserInfo*>*) args[@"infos"];
|
||
|
|
||
|
// ref
|
||
|
AMapNearbySearchResponse* ref = (AMapNearbySearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.infos = infos;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_tableID": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_tableID");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* tableID = (NSString*) args[@"tableID"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.tableID = tableID;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_filter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_filter");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSArray<NSString*>* filter = (NSArray<NSString*>*) args[@"filter"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.filter = filter;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_sortFields": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_sortFields");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* sortFields = (NSString*) args[@"sortFields"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.sortFields = sortFields;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_sortType": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_sortType");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// enum arg
|
||
|
AMapCloudSortType sortType = (AMapCloudSortType) [args[@"sortType"] integerValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.sortType = sortType;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_offset": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_offset");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger offset = [args[@"offset"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.offset = offset;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudSearchBaseRequest::set_page": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudSearchBaseRequest::set_page");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger page = [args[@"page"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudSearchBaseRequest* ref = (AMapCloudSearchBaseRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.page = page;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIAroundSearchRequest::set_center": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIAroundSearchRequest::set_center");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* center = (AMapGeoPoint*) (args[@"center"] == [NSNull null] ? nil : args[@"center"]);
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIAroundSearchRequest* ref = (AMapCloudPOIAroundSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.center = center;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIAroundSearchRequest::set_radius": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIAroundSearchRequest::set_radius");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger radius = [args[@"radius"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIAroundSearchRequest* ref = (AMapCloudPOIAroundSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.radius = radius;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIAroundSearchRequest::set_keywords": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIAroundSearchRequest::set_keywords");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* keywords = (NSString*) args[@"keywords"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIAroundSearchRequest* ref = (AMapCloudPOIAroundSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.keywords = keywords;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIPolygonSearchRequest::set_polygon": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIPolygonSearchRequest::set_polygon");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPolygon* polygon = (AMapGeoPolygon*) (args[@"polygon"] == [NSNull null] ? nil : args[@"polygon"]);
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIPolygonSearchRequest* ref = (AMapCloudPOIPolygonSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.polygon = polygon;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIPolygonSearchRequest::set_keywords": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIPolygonSearchRequest::set_keywords");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* keywords = (NSString*) args[@"keywords"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIPolygonSearchRequest* ref = (AMapCloudPOIPolygonSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.keywords = keywords;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOIIDSearchRequest::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOIIDSearchRequest::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger uid = [args[@"uid"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOIIDSearchRequest* ref = (AMapCloudPOIIDSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOILocalSearchRequest::set_keywords": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOILocalSearchRequest::set_keywords");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* keywords = (NSString*) args[@"keywords"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOILocalSearchRequest* ref = (AMapCloudPOILocalSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.keywords = keywords;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOILocalSearchRequest::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOILocalSearchRequest::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOILocalSearchRequest* ref = (AMapCloudPOILocalSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOISearchResponse::set_count": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOISearchResponse::set_count");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger count = [args[@"count"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOISearchResponse* ref = (AMapCloudPOISearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.count = count;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCloudPOISearchResponse::set_POIs": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCloudPOISearchResponse::set_POIs");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapCloudPOI*>* POIs = (NSArray<AMapCloudPOI*>*) args[@"POIs"];
|
||
|
|
||
|
// ref
|
||
|
AMapCloudPOISearchResponse* ref = (AMapCloudPOISearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.POIs = POIs;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapLocationShareSearchRequest::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapLocationShareSearchRequest::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapLocationShareSearchRequest* ref = (AMapLocationShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapLocationShareSearchRequest::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapLocationShareSearchRequest::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapLocationShareSearchRequest* ref = (AMapLocationShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIShareSearchRequest::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIShareSearchRequest::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIShareSearchRequest* ref = (AMapPOIShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIShareSearchRequest::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIShareSearchRequest::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOIShareSearchRequest* ref = (AMapPOIShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIShareSearchRequest::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIShareSearchRequest::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIShareSearchRequest* ref = (AMapPOIShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIShareSearchRequest::set_address": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIShareSearchRequest::set_address");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* address = (NSString*) args[@"address"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIShareSearchRequest* ref = (AMapPOIShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.address = address;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_strategy": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_strategy");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger strategy = [args[@"strategy"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.strategy = strategy;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_type");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger type = [args[@"type"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.type = type;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_startCoordinate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_startCoordinate");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* startCoordinate = (AMapGeoPoint*) (args[@"startCoordinate"] == [NSNull null] ? nil : args[@"startCoordinate"]);
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.startCoordinate = startCoordinate;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_destinationCoordinate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_destinationCoordinate");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* destinationCoordinate = (AMapGeoPoint*) (args[@"destinationCoordinate"] == [NSNull null] ? nil : args[@"destinationCoordinate"]);
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.destinationCoordinate = destinationCoordinate;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_startName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_startName");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* startName = (NSString*) args[@"startName"];
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.startName = startName;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRouteShareSearchRequest::set_destinationName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRouteShareSearchRequest::set_destinationName");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* destinationName = (NSString*) args[@"destinationName"];
|
||
|
|
||
|
// ref
|
||
|
AMapRouteShareSearchRequest* ref = (AMapRouteShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.destinationName = destinationName;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNavigationShareSearchRequest::set_strategy": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNavigationShareSearchRequest::set_strategy");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger strategy = [args[@"strategy"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapNavigationShareSearchRequest* ref = (AMapNavigationShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.strategy = strategy;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNavigationShareSearchRequest::set_startCoordinate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNavigationShareSearchRequest::set_startCoordinate");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* startCoordinate = (AMapGeoPoint*) (args[@"startCoordinate"] == [NSNull null] ? nil : args[@"startCoordinate"]);
|
||
|
|
||
|
// ref
|
||
|
AMapNavigationShareSearchRequest* ref = (AMapNavigationShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.startCoordinate = startCoordinate;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapNavigationShareSearchRequest::set_destinationCoordinate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapNavigationShareSearchRequest::set_destinationCoordinate");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* destinationCoordinate = (AMapGeoPoint*) (args[@"destinationCoordinate"] == [NSNull null] ? nil : args[@"destinationCoordinate"]);
|
||
|
|
||
|
// ref
|
||
|
AMapNavigationShareSearchRequest* ref = (AMapNavigationShareSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.destinationCoordinate = destinationCoordinate;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapShareSearchResponse::set_shareURL": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapShareSearchResponse::set_shareURL");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* shareURL = (NSString*) args[@"shareURL"];
|
||
|
|
||
|
// ref
|
||
|
AMapShareSearchResponse* ref = (AMapShareSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.shareURL = shareURL;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_beginTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_beginTime");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* beginTime = (NSString*) args[@"beginTime"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.beginTime = beginTime;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_interval": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_interval");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger interval = [args[@"interval"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.interval = interval;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_timeCount": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_timeCount");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger timeCount = [args[@"timeCount"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.timeCount = timeCount;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_strategy": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_strategy");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger strategy = [args[@"strategy"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.strategy = strategy;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_originId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_originId");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* originId = (NSString*) args[@"originId"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.originId = originId;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_destinationId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_destinationId");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* destinationId = (NSString*) args[@"destinationId"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.destinationId = destinationId;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_origintype": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_origintype");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* origintype = (NSString*) args[@"origintype"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.origintype = origintype;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_destinationtype": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_destinationtype");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* destinationtype = (NSString*) args[@"destinationtype"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.destinationtype = destinationtype;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_parentId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_parentId");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* parentId = (NSString*) args[@"parentId"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.parentId = parentId;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_plateProvince": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_plateProvince");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* plateProvince = (NSString*) args[@"plateProvince"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.plateProvince = plateProvince;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_plateNumber": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_plateNumber");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* plateNumber = (NSString*) args[@"plateNumber"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.plateNumber = plateNumber;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchRequest::set_cartype": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchRequest::set_cartype");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger cartype = [args[@"cartype"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchRequest* ref = (AMapFutureRouteSearchRequest*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.cartype = cartype;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchResponse::set_paths": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchResponse::set_paths");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapPath*>* paths = (NSArray<AMapPath*>*) args[@"paths"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchResponse* ref = (AMapFutureRouteSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.paths = paths;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapFutureRouteSearchResponse::set_timeInfos": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapFutureRouteSearchResponse::set_timeInfos");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapFutureTimeInfo*>* timeInfos = (NSArray<AMapFutureTimeInfo*>*) args[@"timeInfos"];
|
||
|
|
||
|
// ref
|
||
|
AMapFutureRouteSearchResponse* ref = (AMapFutureRouteSearchResponse*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.timeInfos = timeInfos;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeoPoint::set_latitude": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeoPoint::set_latitude");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat latitude = [args[@"latitude"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapGeoPoint* ref = (AMapGeoPoint*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.latitude = latitude;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeoPoint::set_longitude": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeoPoint::set_longitude");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat longitude = [args[@"longitude"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapGeoPoint* ref = (AMapGeoPoint*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.longitude = longitude;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeoPolygon::set_points": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeoPolygon::set_points");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapGeoPoint*>* points = (NSArray<AMapGeoPoint*>*) args[@"points"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeoPolygon* ref = (AMapGeoPolygon*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.points = points;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCity::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCity::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapCity* ref = (AMapCity*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCity::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCity::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapCity* ref = (AMapCity*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCity::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCity::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapCity* ref = (AMapCity*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCity::set_num": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCity::set_num");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger num = [args[@"num"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapCity* ref = (AMapCity*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.num = num;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapCity::set_districts": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapCity::set_districts");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapDistrict*>* districts = (NSArray<AMapDistrict*>*) args[@"districts"];
|
||
|
|
||
|
// ref
|
||
|
AMapCity* ref = (AMapCity*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.districts = districts;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSuggestion::set_keywords": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSuggestion::set_keywords");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSArray<NSString*>* keywords = (NSArray<NSString*>*) args[@"keywords"];
|
||
|
|
||
|
// ref
|
||
|
AMapSuggestion* ref = (AMapSuggestion*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.keywords = keywords;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSuggestion::set_cities": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSuggestion::set_cities");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapCity*>* cities = (NSArray<AMapCity*>*) args[@"cities"];
|
||
|
|
||
|
// ref
|
||
|
AMapSuggestion* ref = (AMapSuggestion*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.cities = cities;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_district");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* district = (NSString*) args[@"district"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.district = district;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_address": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_address");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* address = (NSString*) args[@"address"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.address = address;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapTip::set_typecode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapTip::set_typecode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* typecode = (NSString*) args[@"typecode"];
|
||
|
|
||
|
// ref
|
||
|
AMapTip* ref = (AMapTip*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.typecode = typecode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapImage::set_title": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapImage::set_title");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* title = (NSString*) args[@"title"];
|
||
|
|
||
|
// ref
|
||
|
AMapImage* ref = (AMapImage*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.title = title;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapImage::set_url": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapImage::set_url");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* url = (NSString*) args[@"url"];
|
||
|
|
||
|
// ref
|
||
|
AMapImage* ref = (AMapImage*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.url = url;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIExtension::set_rating": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIExtension::set_rating");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat rating = [args[@"rating"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIExtension* ref = (AMapPOIExtension*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.rating = rating;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIExtension::set_cost": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIExtension::set_cost");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat cost = [args[@"cost"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIExtension* ref = (AMapPOIExtension*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.cost = cost;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOIExtension::set_openTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOIExtension::set_openTime");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* openTime = (NSString*) args[@"openTime"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOIExtension* ref = (AMapPOIExtension*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.openTime = openTime;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapIndoorData::set_floor": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapIndoorData::set_floor");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger floor = [args[@"floor"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapIndoorData* ref = (AMapIndoorData*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.floor = floor;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapIndoorData::set_floorName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapIndoorData::set_floorName");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* floorName = (NSString*) args[@"floorName"];
|
||
|
|
||
|
// ref
|
||
|
AMapIndoorData* ref = (AMapIndoorData*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.floorName = floorName;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapIndoorData::set_pid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapIndoorData::set_pid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* pid = (NSString*) args[@"pid"];
|
||
|
|
||
|
// ref
|
||
|
AMapIndoorData* ref = (AMapIndoorData*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.pid = pid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_sname": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_sname");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* sname = (NSString*) args[@"sname"];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.sname = sname;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_address": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_address");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* address = (NSString*) args[@"address"];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.address = address;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapSubPOI::set_subtype": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapSubPOI::set_subtype");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* subtype = (NSString*) args[@"subtype"];
|
||
|
|
||
|
// ref
|
||
|
AMapSubPOI* ref = (AMapSubPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.subtype = subtype;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoutePOI::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoutePOI::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoutePOI* ref = (AMapRoutePOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoutePOI::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoutePOI::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoutePOI* ref = (AMapRoutePOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoutePOI::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoutePOI::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapRoutePOI* ref = (AMapRoutePOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoutePOI::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoutePOI::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRoutePOI* ref = (AMapRoutePOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoutePOI::set_duration": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoutePOI::set_duration");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger duration = [args[@"duration"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRoutePOI* ref = (AMapRoutePOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.duration = duration;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_type");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* type = (NSString*) args[@"type"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.type = type;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_typecode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_typecode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* typecode = (NSString*) args[@"typecode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.typecode = typecode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_address": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_address");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* address = (NSString*) args[@"address"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.address = address;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_tel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_tel");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* tel = (NSString*) args[@"tel"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.tel = tel;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_parkingType": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_parkingType");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* parkingType = (NSString*) args[@"parkingType"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.parkingType = parkingType;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_shopID": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_shopID");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* shopID = (NSString*) args[@"shopID"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.shopID = shopID;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_postcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_postcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* postcode = (NSString*) args[@"postcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.postcode = postcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_website": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_website");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* website = (NSString*) args[@"website"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.website = website;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_email": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_email");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* email = (NSString*) args[@"email"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.email = email;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_province": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_province");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* province = (NSString*) args[@"province"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.province = province;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_pcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_pcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* pcode = (NSString*) args[@"pcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.pcode = pcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_district");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* district = (NSString*) args[@"district"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.district = district;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_gridcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_gridcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* gridcode = (NSString*) args[@"gridcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.gridcode = gridcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_enterLocation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_enterLocation");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* enterLocation = (AMapGeoPoint*) (args[@"enterLocation"] == [NSNull null] ? nil : args[@"enterLocation"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.enterLocation = enterLocation;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_exitLocation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_exitLocation");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* exitLocation = (AMapGeoPoint*) (args[@"exitLocation"] == [NSNull null] ? nil : args[@"exitLocation"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.exitLocation = exitLocation;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_direction": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_direction");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* direction = (NSString*) args[@"direction"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.direction = direction;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_hasIndoorMap": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_hasIndoorMap");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
BOOL hasIndoorMap = [args[@"hasIndoorMap"] boolValue];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.hasIndoorMap = hasIndoorMap;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_businessArea": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_businessArea");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* businessArea = (NSString*) args[@"businessArea"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.businessArea = businessArea;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_indoorData": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_indoorData");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapIndoorData* indoorData = (AMapIndoorData*) (args[@"indoorData"] == [NSNull null] ? nil : args[@"indoorData"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.indoorData = indoorData;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_subPOIs": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_subPOIs");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapSubPOI*>* subPOIs = (NSArray<AMapSubPOI*>*) args[@"subPOIs"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.subPOIs = subPOIs;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_images": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_images");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapImage*>* images = (NSArray<AMapImage*>*) args[@"images"];
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.images = images;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapPOI::set_extensionInfo": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapPOI::set_extensionInfo");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapPOIExtension* extensionInfo = (AMapPOIExtension*) (args[@"extensionInfo"] == [NSNull null] ? nil : args[@"extensionInfo"]);
|
||
|
|
||
|
// ref
|
||
|
AMapPOI* ref = (AMapPOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.extensionInfo = extensionInfo;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAOI::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAOI::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapAOI* ref = (AMapAOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAOI::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAOI::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapAOI* ref = (AMapAOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAOI::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAOI::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapAOI* ref = (AMapAOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAOI::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAOI::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapAOI* ref = (AMapAOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAOI::set_area": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAOI::set_area");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat area = [args[@"area"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapAOI* ref = (AMapAOI*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.area = area;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoad::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoad::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoad* ref = (AMapRoad*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoad::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoad::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoad* ref = (AMapRoad*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoad::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoad::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRoad* ref = (AMapRoad*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoad::set_direction": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoad::set_direction");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* direction = (NSString*) args[@"direction"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoad* ref = (AMapRoad*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.direction = direction;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoad::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoad::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapRoad* ref = (AMapRoad*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_direction": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_direction");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* direction = (NSString*) args[@"direction"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.direction = direction;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_firstId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_firstId");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* firstId = (NSString*) args[@"firstId"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.firstId = firstId;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_firstName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_firstName");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* firstName = (NSString*) args[@"firstName"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.firstName = firstName;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_secondId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_secondId");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* secondId = (NSString*) args[@"secondId"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.secondId = secondId;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapRoadInter::set_secondName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapRoadInter::set_secondName");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* secondName = (NSString*) args[@"secondName"];
|
||
|
|
||
|
// ref
|
||
|
AMapRoadInter* ref = (AMapRoadInter*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.secondName = secondName;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapStreetNumber::set_street": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapStreetNumber::set_street");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* street = (NSString*) args[@"street"];
|
||
|
|
||
|
// ref
|
||
|
AMapStreetNumber* ref = (AMapStreetNumber*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.street = street;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapStreetNumber::set_number": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapStreetNumber::set_number");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* number = (NSString*) args[@"number"];
|
||
|
|
||
|
// ref
|
||
|
AMapStreetNumber* ref = (AMapStreetNumber*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.number = number;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapStreetNumber::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapStreetNumber::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapStreetNumber* ref = (AMapStreetNumber*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapStreetNumber::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapStreetNumber::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSInteger distance = [args[@"distance"] longValue];
|
||
|
|
||
|
// ref
|
||
|
AMapStreetNumber* ref = (AMapStreetNumber*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapStreetNumber::set_direction": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapStreetNumber::set_direction");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* direction = (NSString*) args[@"direction"];
|
||
|
|
||
|
// ref
|
||
|
AMapStreetNumber* ref = (AMapStreetNumber*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.direction = direction;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusinessArea::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusinessArea::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusinessArea* ref = (AMapBusinessArea*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusinessArea::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusinessArea::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapBusinessArea* ref = (AMapBusinessArea*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_country": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_country");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* country = (NSString*) args[@"country"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.country = country;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_countryCode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_countryCode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* countryCode = (NSString*) args[@"countryCode"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.countryCode = countryCode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_province": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_province");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* province = (NSString*) args[@"province"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.province = province;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_district");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* district = (NSString*) args[@"district"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.district = district;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_township": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_township");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* township = (NSString*) args[@"township"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.township = township;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_towncode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_towncode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* towncode = (NSString*) args[@"towncode"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.towncode = towncode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_neighborhood": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_neighborhood");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* neighborhood = (NSString*) args[@"neighborhood"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.neighborhood = neighborhood;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_building": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_building");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* building = (NSString*) args[@"building"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.building = building;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_streetNumber": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_streetNumber");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapStreetNumber* streetNumber = (AMapStreetNumber*) (args[@"streetNumber"] == [NSNull null] ? nil : args[@"streetNumber"]);
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.streetNumber = streetNumber;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapAddressComponent::set_businessAreas": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapAddressComponent::set_businessAreas");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapBusinessArea*>* businessAreas = (NSArray<AMapBusinessArea*>*) args[@"businessAreas"];
|
||
|
|
||
|
// ref
|
||
|
AMapAddressComponent* ref = (AMapAddressComponent*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.businessAreas = businessAreas;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_formattedAddress": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_formattedAddress");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* formattedAddress = (NSString*) args[@"formattedAddress"];
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.formattedAddress = formattedAddress;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_addressComponent": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_addressComponent");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapAddressComponent* addressComponent = (AMapAddressComponent*) (args[@"addressComponent"] == [NSNull null] ? nil : args[@"addressComponent"]);
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.addressComponent = addressComponent;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_roads": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_roads");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapRoad*>* roads = (NSArray<AMapRoad*>*) args[@"roads"];
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.roads = roads;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_roadinters": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_roadinters");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapRoadInter*>* roadinters = (NSArray<AMapRoadInter*>*) args[@"roadinters"];
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.roadinters = roadinters;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_pois": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_pois");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapPOI*>* pois = (NSArray<AMapPOI*>*) args[@"pois"];
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.pois = pois;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapReGeocode::set_aois": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapReGeocode::set_aois");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapAOI*>* aois = (NSArray<AMapAOI*>*) args[@"aois"];
|
||
|
|
||
|
// ref
|
||
|
AMapReGeocode* ref = (AMapReGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.aois = aois;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_formattedAddress": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_formattedAddress");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* formattedAddress = (NSString*) args[@"formattedAddress"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.formattedAddress = formattedAddress;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_province": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_province");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* province = (NSString*) args[@"province"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.province = province;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_city");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* city = (NSString*) args[@"city"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.city = city;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_district");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* district = (NSString*) args[@"district"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.district = district;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_township": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_township");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* township = (NSString*) args[@"township"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.township = township;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_neighborhood": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_neighborhood");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* neighborhood = (NSString*) args[@"neighborhood"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.neighborhood = neighborhood;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_building": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_building");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* building = (NSString*) args[@"building"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.building = building;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_level": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_level");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* level = (NSString*) args[@"level"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.level = level;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_country": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_country");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* country = (NSString*) args[@"country"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.country = country;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapGeocode::set_postcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapGeocode::set_postcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* postcode = (NSString*) args[@"postcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapGeocode* ref = (AMapGeocode*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.postcode = postcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_adcode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* adcode = (NSString*) args[@"adcode"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.adcode = adcode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_buslines": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_buslines");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// list arg
|
||
|
NSArray<AMapBusLine*>* buslines = (NSArray<AMapBusLine*>*) args[@"buslines"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.buslines = buslines;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusStop::set_sequence": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusStop::set_sequence");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* sequence = (NSString*) args[@"sequence"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusStop* ref = (AMapBusStop*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.sequence = sequence;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_uid": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_uid");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* uid = (NSString*) args[@"uid"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.uid = uid;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_type");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* type = (NSString*) args[@"type"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.type = type;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_name");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* name = (NSString*) args[@"name"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.name = name;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_polyline": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_polyline");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* polyline = (NSString*) args[@"polyline"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.polyline = polyline;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_citycode");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* citycode = (NSString*) args[@"citycode"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.citycode = citycode;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_startStop": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_startStop");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* startStop = (NSString*) args[@"startStop"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.startStop = startStop;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_endStop": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_endStop");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* endStop = (NSString*) args[@"endStop"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.endStop = endStop;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_location");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// ref arg
|
||
|
AMapGeoPoint* location = (AMapGeoPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.location = location;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_startTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_startTime");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* startTime = (NSString*) args[@"startTime"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.startTime = startTime;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_endTime": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_endTime");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* endTime = (NSString*) args[@"endTime"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.endTime = endTime;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_company": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_company");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
NSString* company = (NSString*) args[@"company"];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.company = company;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
@"AMapBusLine::set_distance": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
||
|
// print log
|
||
|
if (enableLog) {
|
||
|
NSLog(@"AMapBusLine::set_distance");
|
||
|
}
|
||
|
|
||
|
// args
|
||
|
// jsonable arg
|
||
|
CGFloat distance = [args[@"distance"] floatValue];
|
||
|
|
||
|
// ref
|
||
|
AMapBusLine* ref = (AMapBusLine*) args[@"__this__"];
|
||
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
||
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
ref.distance = distance;
|
||
|
methodResult(@"success");
|
||
|
},
|
||
|
|
||
|
};
|
||
|
}
|
||
|
|
||
|
@end
|