forked from loafle/openapi-generator-original
removed comments
This commit is contained in:
parent
a0b0e7bcb7
commit
f7b1e25453
@ -53,7 +53,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(password == nil) {
|
if(password == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -116,7 +115,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(body == nil) {
|
if(body == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -159,7 +157,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -203,8 +200,7 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(api_key != nil)
|
if(api_key != nil)
|
||||||
[headerParams setValue:api_key forKey:@"api_key"];
|
[headerParams setValue:api_key forKey:@"api_key"];
|
||||||
id bodyDictionary = nil;
|
id bodyDictionary = nil;
|
||||||
// not a return container
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
body: bodyDictionary
|
body: bodyDictionary
|
||||||
@ -242,7 +238,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
|
@ -27,17 +27,11 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_valid = [dict objectForKey:@"valid"];
|
_valid = [dict objectForKey:@"valid"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_token = [dict objectForKey:@"token"];
|
_token = [dict objectForKey:@"token"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_resetsInMillis = [dict objectForKey:@"resetsInMillis"];
|
_resetsInMillis = [dict objectForKey:@"resetsInMillis"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_remainingCalls = [dict objectForKey:@"remainingCalls"];
|
_remainingCalls = [dict objectForKey:@"remainingCalls"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_expiresInMillis = [dict objectForKey:@"expiresInMillis"];
|
_expiresInMillis = [dict objectForKey:@"expiresInMillis"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_totalRequests = [dict objectForKey:@"totalRequests"];
|
_totalRequests = [dict objectForKey:@"totalRequests"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -51,34 +51,20 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_attributionUrl = [dict objectForKey:@"attributionUrl"];
|
_attributionUrl = [dict objectForKey:@"attributionUrl"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_commentCount = [dict objectForKey:@"commentCount"];
|
_commentCount = [dict objectForKey:@"commentCount"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_voteCount = [dict objectForKey:@"voteCount"];
|
_voteCount = [dict objectForKey:@"voteCount"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_fileUrl = [dict objectForKey:@"fileUrl"];
|
_fileUrl = [dict objectForKey:@"fileUrl"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_audioType = [dict objectForKey:@"audioType"];
|
_audioType = [dict objectForKey:@"audioType"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_duration = [dict objectForKey:@"duration"];
|
_duration = [dict objectForKey:@"duration"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_attributionText = [dict objectForKey:@"attributionText"];
|
_attributionText = [dict objectForKey:@"attributionText"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_createdBy = [dict objectForKey:@"createdBy"];
|
_createdBy = [dict objectForKey:@"createdBy"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_description = [dict objectForKey:@"description"];
|
_description = [dict objectForKey:@"description"];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
||||||
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_voteWeightedAverage = [dict objectForKey:@"voteWeightedAverage"];
|
_voteWeightedAverage = [dict objectForKey:@"voteWeightedAverage"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_voteAverage = [dict objectForKey:@"voteAverage"];
|
_voteAverage = [dict objectForKey:@"voteAverage"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_token = [dict objectForKey:@"token"];
|
_token = [dict objectForKey:@"token"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_userId = [dict objectForKey:@"userId"];
|
_userId = [dict objectForKey:@"userId"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_userSignature = [dict objectForKey:@"userSignature"];
|
_userSignature = [dict objectForKey:@"userSignature"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -24,15 +24,10 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_count = [dict objectForKey:@"count"];
|
_count = [dict objectForKey:@"count"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_gram2 = [dict objectForKey:@"gram2"];
|
_gram2 = [dict objectForKey:@"gram2"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_gram1 = [dict objectForKey:@"gram1"];
|
_gram1 = [dict objectForKey:@"gram1"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_wlmi = [dict objectForKey:@"wlmi"];
|
_wlmi = [dict objectForKey:@"wlmi"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_mi = [dict objectForKey:@"mi"];
|
_mi = [dict objectForKey:@"mi"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_cite = [dict objectForKey:@"cite"];
|
_cite = [dict objectForKey:@"cite"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_source = [dict objectForKey:@"source"];
|
_source = [dict objectForKey:@"source"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_name = [dict objectForKey:@"name"];
|
_name = [dict objectForKey:@"name"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -57,13 +57,9 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_extendedText = [dict objectForKey:@"extendedText"];
|
_extendedText = [dict objectForKey:@"extendedText"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_sourceDictionary = [dict objectForKey:@"sourceDictionary"];
|
_sourceDictionary = [dict objectForKey:@"sourceDictionary"];
|
||||||
/* isContainer: true, baseType: Citation, complexType: NIKCitation */
|
|
||||||
id citations_dict = [dict objectForKey:@"citations"];
|
id citations_dict = [dict objectForKey:@"citations"];
|
||||||
if([citations_dict isKindOfClass:[NSArray class]]) {
|
if([citations_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)citations_dict count] > 0) {
|
if([(NSArray*)citations_dict count] > 0) {
|
||||||
@ -75,7 +71,6 @@
|
|||||||
_citations = [[NSArray alloc] initWithArray:objs];
|
_citations = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: true, baseType: Label, complexType: NIKLabel */
|
|
||||||
id labels_dict = [dict objectForKey:@"labels"];
|
id labels_dict = [dict objectForKey:@"labels"];
|
||||||
if([labels_dict isKindOfClass:[NSArray class]]) {
|
if([labels_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)labels_dict count] > 0) {
|
if([(NSArray*)labels_dict count] > 0) {
|
||||||
@ -87,9 +82,7 @@
|
|||||||
_labels = [[NSArray alloc] initWithArray:objs];
|
_labels = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_score = [dict objectForKey:@"score"];
|
_score = [dict objectForKey:@"score"];
|
||||||
/* isContainer: true, baseType: ExampleUsage, complexType: NIKExampleUsage */
|
|
||||||
id exampleUses_dict = [dict objectForKey:@"exampleUses"];
|
id exampleUses_dict = [dict objectForKey:@"exampleUses"];
|
||||||
if([exampleUses_dict isKindOfClass:[NSArray class]]) {
|
if([exampleUses_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)exampleUses_dict count] > 0) {
|
if([(NSArray*)exampleUses_dict count] > 0) {
|
||||||
@ -101,13 +94,9 @@
|
|||||||
_exampleUses = [[NSArray alloc] initWithArray:objs];
|
_exampleUses = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_attributionUrl = [dict objectForKey:@"attributionUrl"];
|
_attributionUrl = [dict objectForKey:@"attributionUrl"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_seqString = [dict objectForKey:@"seqString"];
|
_seqString = [dict objectForKey:@"seqString"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_attributionText = [dict objectForKey:@"attributionText"];
|
_attributionText = [dict objectForKey:@"attributionText"];
|
||||||
/* isContainer: true, baseType: Related, complexType: NIKRelated */
|
|
||||||
id relatedWords_dict = [dict objectForKey:@"relatedWords"];
|
id relatedWords_dict = [dict objectForKey:@"relatedWords"];
|
||||||
if([relatedWords_dict isKindOfClass:[NSArray class]]) {
|
if([relatedWords_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)relatedWords_dict count] > 0) {
|
if([(NSArray*)relatedWords_dict count] > 0) {
|
||||||
@ -119,11 +108,8 @@
|
|||||||
_relatedWords = [[NSArray alloc] initWithArray:objs];
|
_relatedWords = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_sequence = [dict objectForKey:@"sequence"];
|
_sequence = [dict objectForKey:@"sequence"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: true, baseType: TextPron, complexType: NIKTextPron */
|
|
||||||
id textProns_dict = [dict objectForKey:@"textProns"];
|
id textProns_dict = [dict objectForKey:@"textProns"];
|
||||||
if([textProns_dict isKindOfClass:[NSArray class]]) {
|
if([textProns_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)textProns_dict count] > 0) {
|
if([(NSArray*)textProns_dict count] > 0) {
|
||||||
@ -135,7 +121,6 @@
|
|||||||
_textProns = [[NSArray alloc] initWithArray:objs];
|
_textProns = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: true, baseType: Note, complexType: NIKNote */
|
|
||||||
id notes_dict = [dict objectForKey:@"notes"];
|
id notes_dict = [dict objectForKey:@"notes"];
|
||||||
if([notes_dict isKindOfClass:[NSArray class]]) {
|
if([notes_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)notes_dict count] > 0) {
|
if([(NSArray*)notes_dict count] > 0) {
|
||||||
@ -147,7 +132,6 @@
|
|||||||
_notes = [[NSArray alloc] initWithArray:objs];
|
_notes = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: true, baseType: Definition, complexType: NIKDefinition */
|
|
||||||
id results_dict = [dict objectForKey:@"results"];
|
id results_dict = [dict objectForKey:@"results"];
|
||||||
if([results_dict isKindOfClass:[NSArray class]]) {
|
if([results_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)results_dict count] > 0) {
|
if([(NSArray*)results_dict count] > 0) {
|
||||||
@ -27,7 +26,6 @@
|
|||||||
_results = [[NSArray alloc] initWithArray:objs];
|
_results = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_totalResults = [dict objectForKey:@"totalResults"];
|
_totalResults = [dict objectForKey:@"totalResults"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -45,32 +45,20 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_title = [dict objectForKey:@"title"];
|
_title = [dict objectForKey:@"title"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_exampleId = [dict objectForKey:@"exampleId"];
|
_exampleId = [dict objectForKey:@"exampleId"];
|
||||||
/* isContainer: , baseType: ScoredWord, complexType: NIKScoredWord */
|
|
||||||
id score_dict = [dict objectForKey:@"score"];
|
id score_dict = [dict objectForKey:@"score"];
|
||||||
_score = [[NIKScoredWord alloc]initWithValues:score_dict];
|
_score = [[NIKScoredWord alloc]initWithValues:score_dict];
|
||||||
/* isContainer: , baseType: Sentence, complexType: NIKSentence */
|
|
||||||
id sentence_dict = [dict objectForKey:@"sentence"];
|
id sentence_dict = [dict objectForKey:@"sentence"];
|
||||||
_sentence = [[NIKSentence alloc]initWithValues:sentence_dict];
|
_sentence = [[NIKSentence alloc]initWithValues:sentence_dict];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_year = [dict objectForKey:@"year"];
|
_year = [dict objectForKey:@"year"];
|
||||||
/* isContainer: , baseType: ContentProvider, complexType: NIKContentProvider */
|
|
||||||
id provider_dict = [dict objectForKey:@"provider"];
|
id provider_dict = [dict objectForKey:@"provider"];
|
||||||
_provider = [[NIKContentProvider alloc]initWithValues:provider_dict];
|
_provider = [[NIKContentProvider alloc]initWithValues:provider_dict];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_rating = [dict objectForKey:@"rating"];
|
_rating = [dict objectForKey:@"rating"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_url = [dict objectForKey:@"url"];
|
_url = [dict objectForKey:@"url"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_documentId = [dict objectForKey:@"documentId"];
|
_documentId = [dict objectForKey:@"documentId"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: true, baseType: Facet, complexType: NIKFacet */
|
|
||||||
id facets_dict = [dict objectForKey:@"facets"];
|
id facets_dict = [dict objectForKey:@"facets"];
|
||||||
if([facets_dict isKindOfClass:[NSArray class]]) {
|
if([facets_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)facets_dict count] > 0) {
|
if([(NSArray*)facets_dict count] > 0) {
|
||||||
@ -27,7 +26,6 @@
|
|||||||
_facets = [[NSArray alloc] initWithArray:objs];
|
_facets = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: true, baseType: Example, complexType: NIKExample */
|
|
||||||
id examples_dict = [dict objectForKey:@"examples"];
|
id examples_dict = [dict objectForKey:@"examples"];
|
||||||
if([examples_dict isKindOfClass:[NSArray class]]) {
|
if([examples_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)examples_dict count] > 0) {
|
if([(NSArray*)examples_dict count] > 0) {
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,6 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: true, baseType: FacetValue, complexType: NIKFacetValue */
|
|
||||||
id facetValues_dict = [dict objectForKey:@"facetValues"];
|
id facetValues_dict = [dict objectForKey:@"facetValues"];
|
||||||
if([facetValues_dict isKindOfClass:[NSArray class]]) {
|
if([facetValues_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)facetValues_dict count] > 0) {
|
if([(NSArray*)facetValues_dict count] > 0) {
|
||||||
@ -27,7 +26,6 @@
|
|||||||
_facetValues = [[NSArray alloc] initWithArray:objs];
|
_facetValues = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_name = [dict objectForKey:@"name"];
|
_name = [dict objectForKey:@"name"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_count = [dict objectForKey:@"count"];
|
_count = [dict objectForKey:@"count"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_value = [dict objectForKey:@"value"];
|
_value = [dict objectForKey:@"value"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_count = [dict objectForKey:@"count"];
|
_count = [dict objectForKey:@"count"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_year = [dict objectForKey:@"year"];
|
_year = [dict objectForKey:@"year"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -24,15 +24,10 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_unknownYearCount = [dict objectForKey:@"unknownYearCount"];
|
_unknownYearCount = [dict objectForKey:@"unknownYearCount"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_totalCount = [dict objectForKey:@"totalCount"];
|
_totalCount = [dict objectForKey:@"totalCount"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_frequencyString = [dict objectForKey:@"frequencyString"];
|
_frequencyString = [dict objectForKey:@"frequencyString"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: true, baseType: Frequency, complexType: NIKFrequency */
|
|
||||||
id frequency_dict = [dict objectForKey:@"frequency"];
|
id frequency_dict = [dict objectForKey:@"frequency"];
|
||||||
if([frequency_dict isKindOfClass:[NSArray class]]) {
|
if([frequency_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)frequency_dict count] > 0) {
|
if([(NSArray*)frequency_dict count] > 0) {
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_type = [dict objectForKey:@"type"];
|
_type = [dict objectForKey:@"type"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,9 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_noteType = [dict objectForKey:@"noteType"];
|
_noteType = [dict objectForKey:@"noteType"];
|
||||||
/* isContainer: true, baseType: NSString, complexType: */
|
|
||||||
_appliesTo = [dict objectForKey:@"appliesTo"];
|
_appliesTo = [dict objectForKey:@"appliesTo"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_value = [dict objectForKey:@"value"];
|
_value = [dict objectForKey:@"value"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_pos = [dict objectForKey:@"pos"];
|
_pos = [dict objectForKey:@"pos"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -30,19 +30,12 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_label1 = [dict objectForKey:@"label1"];
|
_label1 = [dict objectForKey:@"label1"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_label2 = [dict objectForKey:@"label2"];
|
_label2 = [dict objectForKey:@"label2"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_relationshipType = [dict objectForKey:@"relationshipType"];
|
_relationshipType = [dict objectForKey:@"relationshipType"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_label3 = [dict objectForKey:@"label3"];
|
_label3 = [dict objectForKey:@"label3"];
|
||||||
/* isContainer: true, baseType: NSString, complexType: */
|
|
||||||
_words = [dict objectForKey:@"words"];
|
_words = [dict objectForKey:@"words"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_label4 = [dict objectForKey:@"label4"];
|
_label4 = [dict objectForKey:@"label4"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_gram = [dict objectForKey:@"gram"];
|
_gram = [dict objectForKey:@"gram"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -42,27 +42,16 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_position = [dict objectForKey:@"position"];
|
_position = [dict objectForKey:@"position"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_lemma = [dict objectForKey:@"lemma"];
|
_lemma = [dict objectForKey:@"lemma"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_docTermCount = [dict objectForKey:@"docTermCount"];
|
_docTermCount = [dict objectForKey:@"docTermCount"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_wordType = [dict objectForKey:@"wordType"];
|
_wordType = [dict objectForKey:@"wordType"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_score = [dict objectForKey:@"score"];
|
_score = [dict objectForKey:@"score"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_sentenceId = [dict objectForKey:@"sentenceId"];
|
_sentenceId = [dict objectForKey:@"sentenceId"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_stopword = [dict objectForKey:@"stopword"];
|
_stopword = [dict objectForKey:@"stopword"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_baseWordScore = [dict objectForKey:@"baseWordScore"];
|
_baseWordScore = [dict objectForKey:@"baseWordScore"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -27,11 +27,8 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_hasScoredWords = [dict objectForKey:@"hasScoredWords"];
|
_hasScoredWords = [dict objectForKey:@"hasScoredWords"];
|
||||||
/* isContainer: true, baseType: ScoredWord, complexType: NIKScoredWord */
|
|
||||||
id scoredWords_dict = [dict objectForKey:@"scoredWords"];
|
id scoredWords_dict = [dict objectForKey:@"scoredWords"];
|
||||||
if([scoredWords_dict isKindOfClass:[NSArray class]]) {
|
if([scoredWords_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)scoredWords_dict count] > 0) {
|
if([(NSArray*)scoredWords_dict count] > 0) {
|
||||||
@ -43,11 +40,8 @@
|
|||||||
_scoredWords = [[NSArray alloc] initWithArray:objs];
|
_scoredWords = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_display = [dict objectForKey:@"display"];
|
_display = [dict objectForKey:@"display"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_rating = [dict objectForKey:@"rating"];
|
_rating = [dict objectForKey:@"rating"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_documentMetadataId = [dict objectForKey:@"documentMetadataId"];
|
_documentMetadataId = [dict objectForKey:@"documentMetadataId"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,9 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_source = [dict objectForKey:@"source"];
|
_source = [dict objectForKey:@"source"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_note = [dict objectForKey:@"note"];
|
_note = [dict objectForKey:@"note"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
_partOfSpeech = [dict objectForKey:@"partOfSpeech"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -21,13 +21,9 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_title = [dict objectForKey:@"title"];
|
_title = [dict objectForKey:@"title"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_url = [dict objectForKey:@"url"];
|
_url = [dict objectForKey:@"url"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,6 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_text = [dict objectForKey:@"text"];
|
_text = [dict objectForKey:@"text"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_seq = [dict objectForKey:@"seq"];
|
_seq = [dict objectForKey:@"seq"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_type = [dict objectForKey:@"type"];
|
_type = [dict objectForKey:@"type"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_raw = [dict objectForKey:@"raw"];
|
_raw = [dict objectForKey:@"raw"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_seq = [dict objectForKey:@"seq"];
|
_seq = [dict objectForKey:@"seq"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_rawType = [dict objectForKey:@"rawType"];
|
_rawType = [dict objectForKey:@"rawType"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -33,21 +33,13 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_username = [dict objectForKey:@"username"];
|
_username = [dict objectForKey:@"username"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_status = [dict objectForKey:@"status"];
|
_status = [dict objectForKey:@"status"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_email = [dict objectForKey:@"email"];
|
_email = [dict objectForKey:@"email"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_faceBookId = [dict objectForKey:@"faceBookId"];
|
_faceBookId = [dict objectForKey:@"faceBookId"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_userName = [dict objectForKey:@"userName"];
|
_userName = [dict objectForKey:@"userName"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_displayName = [dict objectForKey:@"displayName"];
|
_displayName = [dict objectForKey:@"displayName"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_password = [dict objectForKey:@"password"];
|
_password = [dict objectForKey:@"password"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -104,7 +103,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -154,7 +152,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -202,7 +199,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -246,7 +242,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -300,7 +295,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -352,7 +346,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -404,7 +397,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -448,7 +440,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -496,7 +487,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -515,7 +505,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
}
|
}
|
||||||
completionBlock(objs, nil);
|
completionBlock(objs, nil);
|
||||||
}
|
}
|
||||||
// it's a primitive type in the response
|
|
||||||
}];
|
}];
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -547,7 +536,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(word == nil) {
|
if(word == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
|
@ -42,30 +42,19 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id updatedAt_dict = [dict objectForKey:@"updatedAt"];
|
id updatedAt_dict = [dict objectForKey:@"updatedAt"];
|
||||||
_updatedAt = [[NIKDate alloc]initWithValues:updatedAt_dict];
|
_updatedAt = [[NIKDate alloc]initWithValues:updatedAt_dict];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_username = [dict objectForKey:@"username"];
|
_username = [dict objectForKey:@"username"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_permalink = [dict objectForKey:@"permalink"];
|
_permalink = [dict objectForKey:@"permalink"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_description = [dict objectForKey:@"description"];
|
_description = [dict objectForKey:@"description"];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
||||||
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id lastActivityAt_dict = [dict objectForKey:@"lastActivityAt"];
|
id lastActivityAt_dict = [dict objectForKey:@"lastActivityAt"];
|
||||||
_lastActivityAt = [[NIKDate alloc]initWithValues:lastActivityAt_dict];
|
_lastActivityAt = [[NIKDate alloc]initWithValues:lastActivityAt_dict];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_name = [dict objectForKey:@"name"];
|
_name = [dict objectForKey:@"name"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_userId = [dict objectForKey:@"userId"];
|
_userId = [dict objectForKey:@"userId"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_numberWordsInList = [dict objectForKey:@"numberWordsInList"];
|
_numberWordsInList = [dict objectForKey:@"numberWordsInList"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_type = [dict objectForKey:@"type"];
|
_type = [dict objectForKey:@"type"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -74,7 +74,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api stringWithCompletionBlock: requestUrl
|
[_api stringWithCompletionBlock: requestUrl
|
||||||
method: @"PUT"
|
method: @"PUT"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -118,7 +117,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api stringWithCompletionBlock: requestUrl
|
[_api stringWithCompletionBlock: requestUrl
|
||||||
method: @"DELETE"
|
method: @"DELETE"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -162,7 +160,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -227,7 +224,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api stringWithCompletionBlock: requestUrl
|
[_api stringWithCompletionBlock: requestUrl
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -279,7 +275,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// it's a returnContainer
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -352,7 +347,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api stringWithCompletionBlock: requestUrl
|
[_api stringWithCompletionBlock: requestUrl
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
|
@ -30,20 +30,13 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_username = [dict objectForKey:@"username"];
|
_username = [dict objectForKey:@"username"];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
||||||
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_userId = [dict objectForKey:@"userId"];
|
_userId = [dict objectForKey:@"userId"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_numberCommentsOnWord = [dict objectForKey:@"numberCommentsOnWord"];
|
_numberCommentsOnWord = [dict objectForKey:@"numberCommentsOnWord"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_numberLists = [dict objectForKey:@"numberLists"];
|
_numberLists = [dict objectForKey:@"numberLists"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -68,7 +68,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(auth_token == nil) {
|
if(auth_token == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"POST"
|
method: @"POST"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
|
@ -27,17 +27,11 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_originalWord = [dict objectForKey:@"originalWord"];
|
_originalWord = [dict objectForKey:@"originalWord"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: true, baseType: NSString, complexType: */
|
|
||||||
_suggestions = [dict objectForKey:@"suggestions"];
|
_suggestions = [dict objectForKey:@"suggestions"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_canonicalForm = [dict objectForKey:@"canonicalForm"];
|
_canonicalForm = [dict objectForKey:@"canonicalForm"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_vulgar = [dict objectForKey:@"vulgar"];
|
_vulgar = [dict objectForKey:@"vulgar"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -45,25 +45,16 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
__id = [dict objectForKey:@"id"];
|
__id = [dict objectForKey:@"id"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_parentId = [dict objectForKey:@"parentId"];
|
_parentId = [dict objectForKey:@"parentId"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_category = [dict objectForKey:@"category"];
|
_category = [dict objectForKey:@"category"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_createdBy = [dict objectForKey:@"createdBy"];
|
_createdBy = [dict objectForKey:@"createdBy"];
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
id createdAt_dict = [dict objectForKey:@"createdAt"];
|
||||||
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
_createdAt = [[NIKDate alloc]initWithValues:createdAt_dict];
|
||||||
/* isContainer: , baseType: ContentProvider, complexType: NIKContentProvider */
|
|
||||||
id contentProvider_dict = [dict objectForKey:@"contentProvider"];
|
id contentProvider_dict = [dict objectForKey:@"contentProvider"];
|
||||||
_contentProvider = [[NIKContentProvider alloc]initWithValues:contentProvider_dict];
|
_contentProvider = [[NIKContentProvider alloc]initWithValues:contentProvider_dict];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_htmlExtra = [dict objectForKey:@"htmlExtra"];
|
_htmlExtra = [dict objectForKey:@"htmlExtra"];
|
||||||
/* isContainer: true, baseType: SimpleDefinition, complexType: NIKSimpleDefinition */
|
|
||||||
id definitions_dict = [dict objectForKey:@"definitions"];
|
id definitions_dict = [dict objectForKey:@"definitions"];
|
||||||
if([definitions_dict isKindOfClass:[NSArray class]]) {
|
if([definitions_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)definitions_dict count] > 0) {
|
if([(NSArray*)definitions_dict count] > 0) {
|
||||||
@ -75,7 +66,6 @@
|
|||||||
_definitions = [[NSArray alloc] initWithArray:objs];
|
_definitions = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: true, baseType: SimpleExample, complexType: NIKSimpleExample */
|
|
||||||
id examples_dict = [dict objectForKey:@"examples"];
|
id examples_dict = [dict objectForKey:@"examples"];
|
||||||
if([examples_dict isKindOfClass:[NSArray class]]) {
|
if([examples_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)examples_dict count] > 0) {
|
if([(NSArray*)examples_dict count] > 0) {
|
||||||
@ -87,10 +77,8 @@
|
|||||||
_examples = [[NSArray alloc] initWithArray:objs];
|
_examples = [[NSArray alloc] initWithArray:objs];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/* isContainer: , baseType: NIKDate, complexType: NIKDate */
|
|
||||||
id publishDate_dict = [dict objectForKey:@"publishDate"];
|
id publishDate_dict = [dict objectForKey:@"publishDate"];
|
||||||
_publishDate = [[NIKDate alloc]initWithValues:publishDate_dict];
|
_publishDate = [[NIKDate alloc]initWithValues:publishDate_dict];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_note = [dict objectForKey:@"note"];
|
_note = [dict objectForKey:@"note"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -18,11 +18,8 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_count = [dict objectForKey:@"count"];
|
_count = [dict objectForKey:@"count"];
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_lexicality = [dict objectForKey:@"lexicality"];
|
_lexicality = [dict objectForKey:@"lexicality"];
|
||||||
/* isContainer: , baseType: NSString, complexType: */
|
|
||||||
_word = [dict objectForKey:@"word"];
|
_word = [dict objectForKey:@"word"];
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
@ -15,9 +15,7 @@
|
|||||||
|
|
||||||
- (id) initWithValues: (NSDictionary*)dict
|
- (id) initWithValues: (NSDictionary*)dict
|
||||||
{
|
{
|
||||||
/* isContainer: , baseType: NSNumber, complexType: */
|
|
||||||
_totalResults = [dict objectForKey:@"totalResults"];
|
_totalResults = [dict objectForKey:@"totalResults"];
|
||||||
/* isContainer: true, baseType: WordSearchResult, complexType: NIKWordSearchResult */
|
|
||||||
id searchResults_dict = [dict objectForKey:@"searchResults"];
|
id searchResults_dict = [dict objectForKey:@"searchResults"];
|
||||||
if([searchResults_dict isKindOfClass:[NSArray class]]) {
|
if([searchResults_dict isKindOfClass:[NSArray class]]) {
|
||||||
if([(NSArray*)searchResults_dict count] > 0) {
|
if([(NSArray*)searchResults_dict count] > 0) {
|
||||||
|
@ -70,7 +70,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(query == nil) {
|
if(query == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -106,8 +105,7 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
[queryParams setValue:date forKey:@"date"];
|
[queryParams setValue:date forKey:@"date"];
|
||||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||||
id bodyDictionary = nil;
|
id bodyDictionary = nil;
|
||||||
// not a return container
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
body: bodyDictionary
|
body: bodyDictionary
|
||||||
@ -175,7 +173,6 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
if(query == nil) {
|
if(query == nil) {
|
||||||
// error
|
// error
|
||||||
}
|
}
|
||||||
// not a return container
|
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
@ -233,8 +230,7 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
[queryParams setValue:limit forKey:@"limit"];
|
[queryParams setValue:limit forKey:@"limit"];
|
||||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||||
id bodyDictionary = nil;
|
id bodyDictionary = nil;
|
||||||
// it's a returnContainer
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
body: bodyDictionary
|
body: bodyDictionary
|
||||||
@ -293,8 +289,7 @@ static NSString * basePath = @"http://api.wordnik.com/v4";
|
|||||||
[queryParams setValue:maxLength forKey:@"maxLength"];
|
[queryParams setValue:maxLength forKey:@"maxLength"];
|
||||||
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
NSMutableDictionary* headerParams = [[NSMutableDictionary alloc] init];
|
||||||
id bodyDictionary = nil;
|
id bodyDictionary = nil;
|
||||||
// not a return container
|
[_api dictionaryWithCompletionBlock: requestUrl
|
||||||
[_api dictionaryWithCompletionBlock: requestUrl
|
|
||||||
method: @"GET"
|
method: @"GET"
|
||||||
queryParams: queryParams
|
queryParams: queryParams
|
||||||
body: bodyDictionary
|
body: bodyDictionary
|
||||||
|
Loading…
x
Reference in New Issue
Block a user