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